Ejemplo n.º 1
0
    void SetupNetworks()
    {
        SocketIOComp.On("CLIENT:CONNECTED", OnServerConnected);

        SocketIOComp.On("CLIENT:JOINED", OnUserJoined);
        SocketIOComp.On("CLIENT:OTHER_JOINED", OnOtherUserJoined);

        SocketIOComp.On("CLIENT:MOVE", OnMove);
    }
Ejemplo n.º 2
0
    private void InitCallbacks()
    {
        SocketIOComp.On("CLIENT:PING", OnPing);

        SocketIOComp.On("CLIENT:TIMER_UPDATE", OnGameTimeUpdate);

        SocketIOComp.On("CLIENT:CREATE_MAP", OnCreateMap);

        SocketIOComp.On("CLIENT:CONNECTED", OnServerConnected);

        SocketIOComp.On("CLIENT:JOINED", OnUserJoined);
        SocketIOComp.On("CLIENT:OTHER_JOINED", OnOtherUserJoined);

        SocketIOComp.On("CLIENT:GAMESTATE", OnGameState);

        SocketIOComp.On("CLIENT:CREATE_OTHER", OnOtherUserCreated);

        SocketIOComp.On("CLIENT:WALK_BLENDER", OnBlenderWalk);
        SocketIOComp.On("CLIENT:ROTATE_BLENDER", OnBlenderRotate);
        SocketIOComp.On("CLIENT:KILL_BLENDER", OnKillBlender);

        SocketIOComp.On("CLIENT:MOVE_KILLER", OnKillerMove);

        SocketIOComp.On("CLIENT:DISCONNECTED", OnOtherUserDisconnect);

        SocketIOComp.On("CLIENT:CHATSEND", OnChatSend);

        SocketIOComp.On("CLIENT:ROOM_FULL", OnRoomFull);

        SocketIOComp.On("CLIENT:SERVER_FULL", OnServerFull);

        SocketIOComp.On("CLIENT:BLENDER_NPC_CREATE", OnBlenderNPCCreate);

        SocketIOComp.On("CLIENT:PLAYERSETUP", OnPlayerSetup);

        SocketIOComp.On("CLIENT:BLENDER_SIREN_ON", OnBlenderSirenOn);
        SocketIOComp.On("CLIENT:BLENDER_SIREN_OFF", OnBlenderSirenOff);
    }