Sending Commands - fractalbach/gamenet GitHub Wiki

Player Commands

Type Body
Move float64, float64, float64
Login string, string
Logout (empty)
Create
Delete

Example as JSON

Move

{
    "Type": "Move", 
    "Body": [1.012 , 2.032, 3.1234],
}

Login

Prior to encryption, the login JSON would look like this:

{
    "Type": "Login", 
    "Body": ["username", "password"],
}