Changeset 273 for binary-improvements/7dtd-server-fixes
- Timestamp:
- May 11, 2016, 8:54:19 PM (9 years ago)
- Location:
- binary-improvements/7dtd-server-fixes
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/7dtd-server-fixes.csproj
r254 r273 92 92 <Compile Include="src\AllocsUtils.cs" /> 93 93 <Compile Include="src\LandClaimList.cs" /> 94 <Compile Include="src\PersistentData\Attributes.cs" /> 94 95 </ItemGroup> 95 96 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> -
binary-improvements/7dtd-server-fixes/ModInfo.xml
r271 r273 5 5 <Description value="Common functions" /> 6 6 <Author value="Christian 'Alloc' Illy" /> 7 <Version value=" 9" />7 <Version value="10" /> 8 8 <Website value="http://7dtd.illy.bz" /> 9 9 </ModInfo> -
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.