Changeset 273 for binary-improvements/7dtd-server-fixes/src
- Timestamp:
- May 11, 2016, 8:54:19 PM (9 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsLogFunctions.cs
r233 r273 15 15 ", name=" + _cInfo.playerName + 16 16 ", steamid=" + _cInfo.playerId + 17 ", steamOwner=" + _cInfo.ownerId + 17 18 ", ip=" + _cInfo.ip 18 19 ); -
binary-improvements/7dtd-server-fixes/src/ChatHookExample.cs
r267 r273 7 7 8 8 public static bool Hook (ClientInfo _cInfo, EnumGameMessages _type, string _message, string _playerName) { 9 if ( !string.IsNullOrEmpty (_message)) {9 if (_type == EnumGameMessages.Chat && !string.IsNullOrEmpty (_message)) { 10 10 if (_message.ToLower () == "/alloc") { 11 11 if (_cInfo != null) { 12 12 Log.Out ("Sent chat hook reply to {0}", _cInfo.playerId); 13 13 _cInfo.SendPackage (new NetPackageGameMessage (EnumGameMessages.Chat, ANSWER, "", false, "", false)); 14 GameManager.Instance.GameMessageServer (_cInfo, EnumGameMessages.Chat, string.Format("!{0}", _message), _playerName, false, "", false); 14 15 } else { 15 16 Log.Error ("Argument _cInfo null on message: {0}", _message); -
binary-improvements/7dtd-server-fixes/src/PersistentData/PersistentContainer.cs
r238 r273 10 10 { 11 11 private Players players; 12 [OptionalField] 13 private Attributes attributes; 12 14 13 15 public Players Players { … … 16 18 players = new Players (); 17 19 return players; 20 } 21 } 22 23 public Attributes Attributes 24 { 25 get { 26 if (attributes == null) { 27 attributes = new Attributes(); 28 } 29 return attributes; 18 30 } 19 31 } -
binary-improvements/7dtd-server-fixes/src/PersistentData/Player.cs
r253 r273 22 22 [OptionalField] 23 23 private uint experience; 24 [OptionalField] 25 private bool chatMuted; 26 [OptionalField] 27 private int maxChatLength; 24 28 [NonSerialized] 25 29 private ClientInfo … … 122 126 } 123 127 128 public bool IsChatMuted{ 129 get { 130 return chatMuted; 131 } 132 set { 133 chatMuted = value; 134 } 135 } 136 137 public int MaxChatLength { 138 get { 139 if (maxChatLength == 0 ) { 140 maxChatLength = 255; 141 } 142 return maxChatLength; 143 } 144 set { 145 maxChatLength = value; 146 } 147 } 148 124 149 public void SetOffline () 125 150 {
Note:
See TracChangeset
for help on using the changeset viewer.