-
Notifications
You must be signed in to change notification settings - Fork 1
Messages
Tomen edited this page Oct 23, 2014
·
2 revisions
Messages contain a message type and a payload.
The following message types are currently used:
- CHAT
- ENTITY
- ENTITY_REMOVE
- HANDSHAKE
- PLAYER
- PING_PONG
- COLLISION
Contains a chat message. Fields
- from: the name of the sending user
- message: the actual message
Used to send an entity from the server to the client. If the entity already exists, it is updated.
Used by the server to tell clients that an entity was removed from the world. Right now, this is only used for disconnecting clients.
Sent from the client to the server to request a player entity.
Sent from the server to the client as a response to the HANDSHAKE request. Contains the players entity.
Development time message to debug connection issues.
Sent from the server to clients to indicate that a collision between two entities happened.