source: binary-improvements/7dtd-server-fixes/src/API.cs@ 318

Last change on this file since 318 was 267, checked in by alloc, 9 years ago

Update Chat stuff to 14.6 b26

File size: 1.1 KB
RevLine 
[230]1using System;
2
3namespace AllocsFixes
4{
5 public class API : ModApiAbstract {
6
7 public override void GameAwake () {
8 StateManager.Awake ();
9 }
10
11 public override void GameShutdown () {
12 StateManager.Shutdown ();
13 }
14
[233]15 public override void SavePlayerData (ClientInfo _cInfo, PlayerDataFile _playerDataFile) {
16 PlayerDataStuff.GM_SavePlayerData (_cInfo, _playerDataFile);
[230]17 }
18
[233]19 public override void PlayerLogin (ClientInfo _cInfo, string _compatibilityVersion) {
[230]20 }
21
[233]22 public override void PlayerSpawning (ClientInfo _cInfo, int _chunkViewDim, PlayerProfile _playerProfile) {
23 AllocsLogFunctions.RequestToSpawnPlayer (_cInfo, _chunkViewDim, _playerProfile);
[230]24 }
25
26 public override void PlayerDisconnected (ClientInfo _cInfo, bool _bShutdown) {
27 AllocsLogFunctions.PlayerDisconnected (_cInfo, _bShutdown);
28 }
29
[267]30 public override bool ChatMessage (ClientInfo _cInfo, EnumGameMessages _type, string _msg, string _mainName, bool _localizeMain, string _secondaryName, bool _localizeSecondary) {
31 return ChatHookExample.Hook (_cInfo, _type, _msg, _mainName);
[238]32 }
[230]33 }
34}
35
Note: See TracBrowser for help on using the repository browser.