Changeset 324 for binary-improvements/7dtd-server-fixes/src/API.cs
- Timestamp:
- Sep 3, 2018, 7:11:10 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/API.cs
r267 r324 1 1 using System; 2 using System.Collections.Generic; 2 3 3 4 namespace AllocsFixes 4 5 { 5 public class API : ModApiAbstract{6 public class API : IModApi { 6 7 7 public overridevoid GameAwake () {8 public void GameAwake () { 8 9 StateManager.Awake (); 9 10 } 10 11 11 public overridevoid GameShutdown () {12 public void GameShutdown () { 12 13 StateManager.Shutdown (); 13 14 } 14 15 15 public overridevoid SavePlayerData (ClientInfo _cInfo, PlayerDataFile _playerDataFile) {16 public void SavePlayerData (ClientInfo _cInfo, PlayerDataFile _playerDataFile) { 16 17 PlayerDataStuff.GM_SavePlayerData (_cInfo, _playerDataFile); 17 18 } 18 19 19 public override void PlayerLogin (ClientInfo _cInfo, string _compatibilityVersion) { 20 } 21 22 public override void PlayerSpawning (ClientInfo _cInfo, int _chunkViewDim, PlayerProfile _playerProfile) { 20 public void PlayerSpawning (ClientInfo _cInfo, int _chunkViewDim, PlayerProfile _playerProfile) { 23 21 AllocsLogFunctions.RequestToSpawnPlayer (_cInfo, _chunkViewDim, _playerProfile); 24 22 } 25 23 26 public overridevoid PlayerDisconnected (ClientInfo _cInfo, bool _bShutdown) {24 public void PlayerDisconnected (ClientInfo _cInfo, bool _bShutdown) { 27 25 AllocsLogFunctions.PlayerDisconnected (_cInfo, _bShutdown); 28 26 } 29 27 30 public override bool ChatMessage (ClientInfo _cInfo, EnumGameMessages _type, string _msg, string _mainName, bool _localizeMain, string _secondaryName, bool _localizeSecondary) {28 public bool ChatMessage (ClientInfo _cInfo, EChatType _type, int _senderId, string _msg, string _mainName, bool _localizeMain, List<int> _recipientEntityIds) { 31 29 return ChatHookExample.Hook (_cInfo, _type, _msg, _mainName); 30 } 31 32 public void InitMod () { 33 ModEvents.GameAwake.RegisterHandler (GameAwake); 34 ModEvents.GameShutdown.RegisterHandler (GameShutdown); 35 ModEvents.SavePlayerData.RegisterHandler (SavePlayerData); 36 ModEvents.PlayerSpawning.RegisterHandler (PlayerSpawning); 37 ModEvents.PlayerDisconnected.RegisterHandler (PlayerDisconnected); 38 ModEvents.ChatMessage.RegisterHandler (ChatMessage); 32 39 } 33 40 }
Note:
See TracChangeset
for help on using the changeset viewer.