Server sends this message whenever something goes wrong from its perspective. It is informative for the client to correct its actions or to identify development issues. For example, error is sent when player sends invalid path for the unit movement.
struct s2c_error_t {
char type; // MSG_S2C_ERROR;
unsigned char error_type; // Error type
};
The following error types are currently supported:
const unsigned char ERROR_NOT_ALLOWED = 0;
const unsigned char ERROR_INVALID_PATH = 1;
const unsigned char ERROR_NOT_READY = 2;