Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusDisconnected = "disconnected" StatusConnecting = "connecting" StatusConnected = "connected" StatusError = "error" ActionChat = "chat" ActionKeys = "keys" ActionAFK = "afk" ActionTeleport = "teleport" ActionEnterVehicle = "enterVehicle" ActionExitVehicle = "exitVehicle" ActionDialog = "dialog" ActionTextDraw = "textDraw" ActionClickPlayer = "clickPlayer" ActionDeferDialog = "deferDialog" ActionShowDialog = "showDialog" ActionDismissDialog = "dismissDialog" EventInstanceCreated = "instance.created" EventInstanceUpdated = "instance.updated" EventInstanceDeleted = "instance.deleted" MaxChatMessages = 200 InvalidVehicleID = -1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMessage ¶
type Connection ¶
type Player ¶
type Player struct {
ID int `json:"id"`
Name string `json:"name"`
Score int `json:"score"`
Ping int `json:"ping"`
Distance float32 `json:"distance"`
Health float32 `json:"health"`
Armour float32 `json:"armour"`
Skin int `json:"skin"`
Team int `json:"team"`
Rotation float32 `json:"rotation"`
Color string `json:"color"`
X float32 `json:"x"`
Y float32 `json:"y"`
Z float32 `json:"z"`
}
type QuickCommand ¶
type Snapshot ¶
type Snapshot struct {
Server Server `json:"server"`
Connection Connection `json:"connection"`
Chat []ChatMessage `json:"chat"`
Players []Player `json:"players"`
NearbyPlayers []Player `json:"nearbyPlayers"`
Vehicles []Vehicle `json:"vehicles"`
Objects []Object `json:"objects"`
TextDraws []TextDraw `json:"textDraws"`
Dialogs []Dialog `json:"dialogs"`
Commands []QuickCommand `json:"commands"`
ActiveDialog *Dialog `json:"activeDialog"`
VehicleState VehicleState `json:"vehicleState"`
KeyMask int `json:"keyMask"`
AFK bool `json:"afk"`
Spawned bool `json:"spawned"`
}
type TextDraw ¶
type TextDraw struct {
ID int `json:"id"`
Style int `json:"style"`
Text string `json:"text"`
LetterColor string `json:"letterColor"`
BoxColor string `json:"boxColor"`
BackgroundColor string `json:"backgroundColor"`
Selectable bool `json:"selectable"`
X float32 `json:"x"`
Y float32 `json:"y"`
LetterWidth float32 `json:"letterWidth"`
LetterHeight float32 `json:"letterHeight"`
}
type VehicleState ¶
Click to show internal directories.
Click to hide internal directories.