Ejemplo n.º 1
0
 private void OnPlayerLeft(EB.Sparx.Game game, EB.Sparx.Player player)
 {
     if (LevelOwnerComponent.IsLevelOwner(player))
     {
         LevelOwnerComponent.AssignLevelOwner(mDMono.gameObject);
     }
 }
Ejemplo n.º 2
0
 public void OnGameEnded(EB.Sparx.Game game)
 {
     if (GameEndedEvent != null)
     {
         GameEndedEvent(game);
     }
 }
Ejemplo n.º 3
0
 public void OnPlayerJoined(EB.Sparx.Game game, EB.Sparx.Player player)
 {
     if (PlayerJoinedEvent != null)
     {
         PlayerJoinedEvent(game, player);
     }
 }
Ejemplo n.º 4
0
    public void OnPlayerLeft(EB.Sparx.Game game, EB.Sparx.Player player)
    {
        Replication.OnPlayerLeft(game, player);

        if (PlayerLeftEvent != null)
        {
            PlayerLeftEvent(game, player);
        }
    }
Ejemplo n.º 5
0
    public void OnLeaveGame(EB.Sparx.Game game, string reason)
    {
        Replication.ClearGame();

        if (LeaveGameEvent != null)
        {
            LeaveGameEvent(game, reason);
        }
    }
Ejemplo n.º 6
0
    public void OnJoinedGame(EB.Sparx.Game game)
    {
        Replication.SetGame(game);

        if (JoinedGameEvent != null)
        {
            JoinedGameEvent(game);
        }
    }
Ejemplo n.º 7
0
 public void OnUpdate(EB.Sparx.Game game)
 {
 }
Ejemplo n.º 8
0
 public void OnReceive(EB.Sparx.Game game, EB.Sparx.Player player, EB.Sparx.Packet packet)
 {
     Replication.Receive(player != null ? player.PlayerId : EB.Sparx.Network.HostId, packet.Data);
 }
Ejemplo n.º 9
0
 public void OnAttributesUpdated(EB.Sparx.Game game)
 {
 }
Ejemplo n.º 10
0
 public void OnJoinedGame(EB.Sparx.Game game)
 {
     Manager.SetGame(game);
     EB.Util.BroadcastMessage("OnJoinedGame");
 }
Ejemplo n.º 11
0
 public void OnGameEnded(EB.Sparx.Game game)
 {
     EB.Util.BroadcastMessage("OnGameEnded");
 }
Ejemplo n.º 12
0
 public void OnAttributesUpdated(EB.Sparx.Game game)
 {
     EB.Util.BroadcastMessage("OnAttributesUpdated");
 }
Ejemplo n.º 13
0
        public void OnPlayerLeft(EB.Sparx.Game game, EB.Sparx.Player player)
        {
            Manager.OnPlayerLeft(game, player);

            EB.Util.BroadcastMessage("OnPlayerLeft", player);
        }
Ejemplo n.º 14
0
 public void OnPlayerJoined(EB.Sparx.Game game, EB.Sparx.Player player)
 {
     EB.Util.BroadcastMessage("OnPlayerJoined", player);
 }
Ejemplo n.º 15
0
 public void OnUpdate(EB.Sparx.Game game)
 {
     Manager.Update();
 }
Ejemplo n.º 16
0
 public void OnLeaveGame(EB.Sparx.Game game, string reason)
 {
     Manager.ClearGame();
     EB.Util.BroadcastMessage("OnLeaveGame", reason);
 }