source: binary-improvements/7dtd-server-fixes/src/PersistentData/Attributes.cs@ 384

Last change on this file since 384 was 326, checked in by alloc, 6 years ago

More cleanup, allocation improvements

File size: 525 bytes
RevLine 
[273]1using System;
2
[325]3namespace AllocsFixes.PersistentData {
[273]4 [Serializable]
[325]5 public class Attributes {
[273]6 private bool hideChatCommands;
[326]7 private string hideChatCommandPrefix;
[273]8
9 public bool HideChatCommands {
[325]10 get { return hideChatCommands; }
11 set { hideChatCommands = value; }
[273]12 }
13
14 public string HideChatCommandPrefix {
15 get {
16 if (hideChatCommandPrefix == null) {
17 hideChatCommandPrefix = "";
18 }
[325]19
[273]20 return hideChatCommandPrefix;
21 }
[325]22 set { hideChatCommandPrefix = value; }
[273]23 }
24 }
[325]25}
Note: See TracBrowser for help on using the repository browser.