Exemplo n.º 1
0
        protected virtual void OnPlayerJoined(Player player)
        {
            PlayerJoinedDelegate handler = PlayerJoined;

            if (handler != null)
            {
                handler(this, player);
            }
        }
 private void RemoveHandler_PlayerJoined(PlayerJoinedDelegate value)
 {
     PlayerJoinedInvoker = (PlayerJoinedDelegate)Delegate.Remove(PlayerJoinedInvoker, value);
 }
 private void AddHandler_PlayerJoined(PlayerJoinedDelegate value)
 {
     PlayerJoinedInvoker = (PlayerJoinedDelegate)Delegate.Combine(PlayerJoinedInvoker, value);
 }
Exemplo n.º 4
0
 private void RemoveHandler_ObserverJoinedGame(PlayerJoinedDelegate value)
 {
     ObserverJoinedGameInvoker = (PlayerJoinedDelegate)Delegate.Remove(ObserverJoinedGameInvoker, value);
 }
Exemplo n.º 5
0
 private void AddHandler_ObserverJoinedGame(PlayerJoinedDelegate value)
 {
     ObserverJoinedGameInvoker = (PlayerJoinedDelegate)Delegate.Combine(ObserverJoinedGameInvoker, value);
 }
Exemplo n.º 6
0
 private void RemoveHandler_ObserverJoinedGame(PlayerJoinedDelegate value)
 {
     ObserverJoinedGameInvoker = (PlayerJoinedDelegate)Delegate.Remove(ObserverJoinedGameInvoker, value);
 }
Exemplo n.º 7
0
 private void AddHandler_ObserverJoinedGame(PlayerJoinedDelegate value)
 {
     ObserverJoinedGameInvoker = (PlayerJoinedDelegate)Delegate.Combine(ObserverJoinedGameInvoker, value);
 }
Exemplo n.º 8
0
 private void RemoveHandler_PlayerJoined(PlayerJoinedDelegate value)
 {
     PlayerJoinedInvoker = (PlayerJoinedDelegate)Delegate.Remove(PlayerJoinedInvoker, value);
 }
Exemplo n.º 9
0
 private void AddHandler_PlayerJoined(PlayerJoinedDelegate value)
 {
     PlayerJoinedInvoker = (PlayerJoinedDelegate)Delegate.Combine(PlayerJoinedInvoker, value);
 }