Documentation ¶
Index ¶
Constants ¶
View Source
const ( LoginStatusSucc = 1 LoginStatusFail = 2 )
Login status
Variables ¶
View Source
var EmptyMessage = None{}
EmptyMessage was a shared empty message
Functions ¶
This section is empty.
Types ¶
type EnterWorldResponse ¶
type EnterWorldResponse struct {
ID int64 `json:"id"`
}
EnterWorldResponse indicates a new tadpole enter current scene
type JoyLoginRequest ¶
type JoyLoginRequest struct { Username string `json:"username"` Cipher string `json:"cipher"` Timestamp int `json:"timestamp"` }
JoyLoginRequest represent a login request
type LeaveWorldResponse ¶
type LeaveWorldResponse struct {
ID int64 `json:"id"`
}
LeaveWorldResponse indicates tadpole leave current scene
type LoginResponse ¶
type LoginResponse struct { Status int `json:"status"` ID int64 `json:"id"` Error string `json:"error"` }
LoginResponse represent a login response
type UpdateMessage ¶
type UpdateMessage struct { ID int `json:"id"` X float32 `json:"x"` Y float32 `json:"y"` Name string `json:"name"` Momentum float32 `json:"momentum"` Angle float32 `json:"angle"` }
UpdateMessage contains latest position information of tadpole
type WorldMessage ¶
WorldMessage represent a guest message
Click to show internal directories.
Click to hide internal directories.