예제 #1
0
 internal void OnPlayerRespawn(PlayerInfo player)
 {
     PlayerRespawn?.Invoke(this, player);
 }
예제 #2
0
 protected virtual void OnPlayerJoined(PlayerInfo player)
 {
     PlayerJoined?.Invoke(this, player);
 }
예제 #3
0
 protected virtual void OnPlayerLeft(PlayerInfo player)
 {
     PlayerLeft?.Invoke(this, player);
 }
예제 #4
0
 protected virtual PlayerInfo CreatePlayer(byte id, bool local = false)
 {
     Players[id] = new PlayerInfo(id);
     OnPlayerJoined(Players[id]);
     return(Players[id]);
 }