void RegisterHandlers() { if (client) { client.RegisterHandler((short)MsgId.RequestSpawnStart, HandleRequestSpawnStart); client.RegisterHandler((short)MsgId.KillSpawn, HandleKillSpawn); } if (server) { server.RegisterHandler((short)MsgId.RequestSpawnStart, HandleRequestSpawnStart); server.RegisterHandler((short)MsgId.KillSpawn, HandleKillSpawn); } }
void RegisterHandlers() { if (client) { client.RegisterHandler <RequestSpawnStartMsg>(HandleRequestSpawnStart); client.RegisterHandler <KillSpawnMsg>(HandleKillSpawn); } if (server) { server.RegisterHandler <RequestSpawnStartMsg>(HandleRequestSpawnStart); server.RegisterHandler <KillSpawnMsg>(HandleKillSpawn); } }
private void RegisterHandlers() { if (client) { client.OnConnected += RegisterSpawner; client.OnDisconnected += HandleDisconnect; client.RegisterHandler <RequestSpawnStartToSpawnerMsg>(HandleRequestSpawnStart); client.RegisterHandler <KillSpawnMsg>(HandleKillSpawn); } if (server) { server.RegisterHandler <RequestSpawnStartToSpawnerMsg>(HandleRequestSpawnStart); server.RegisterHandler <KillSpawnMsg>(HandleKillSpawn); } }
void RegisterHandlers() { client.RegisterHandler <ChangeServerMsg>(HandleChangeServersMsg); client.RegisterHandler <GameListMsg>(HandleGameListMsg); }
private void RegisterHandlers() { client.RegisterHandler <ChatMsg>(HandleChatMsg); }
void RegisterHandlers() { client.RegisterHandler((short)MsgId.ChangeServers, HandleChangeServersMsg); client.RegisterHandler((short)MsgId.GameList, HandleGameListMsg); }