Main server, which controls all the incomming messages and handles them.
More...
Main server, which controls all the incomming messages and handles them.
MainServer.MainServer |
( |
bool |
debug) | |
|
Initializes a new instance of the MainServer class.
- Parameters
-
void MainServer.onGetMessage |
( |
Message |
message) | |
|
Every incomming message from the server goes through here and is being handled by their own function.
- Parameters
-
void MainServer.playerDead |
( |
Message |
message) | |
|
When the client should set the player to dead state.
- Parameters
-
message | Message from PlayerIO looks like this: 00 player.Id of our own player 01 player.Id of the attacket |
void MainServer.playerHasLight |
( |
Message |
message) | |
|
When the server should tell the server which player has the light.
- Parameters
-
message | Message from PlayerIO looks like this: 00 player.Id of our own player This functions isn't being used anymore |
void MainServer.spawnCarrierLight |
( |
Message |
message) | |
|
When the client should spawn an CarrierLight explosion
- Parameters
-
message | Message from PlayerIO looks like this: 00 player.Id of the player who gained the light |
The documentation for this class was generated from the following file:
- C:/jayce/project/theflock/client/Assets/Source/com/theflock/MainServer.cs