Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a middleman between the websocket connection and the hub.
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub maintains the set of active clients and broadcasts messages to the clients.
type Message ¶
type Message struct { Type MessageType `json:"type"` Data json.RawMessage `json:"data"` }
func (Message) ClientSetDisplayNameData ¶
func (Message) ClientSetOrientationData ¶
func (m Message) ClientSetOrientationData() (ClientSetOrientationMessage, error)
func (Message) ClientSetSceneData ¶
type MessageType ¶
type MessageType string
const ( ClientSetOrientationMessageType MessageType = "Client-SetOrientation" ClientSetDisplayNameMessageType MessageType = "Client-SetDisplayName" ClientSetPointerMessageType MessageType = "Client-SetPointer" ClientRemovePointerMessageType MessageType = "Client-RemovePointer" ClientSetSceneMessageType MessageType = "Client-SetScene" ServerSetClientIDMessageType MessageType = "Server-SetClientID" ServerRoomStateUpdateMessageType MessageType = "Server-RoomStateUpdate" ServerRefrershGeneratorMessageType MessageType = "Server-RefreshGenerator" ServerBroadcastMessageType MessageType = "Server-Broadcast" )
type WebScene ¶
type WebScene struct { RenderWireframe bool `json:"renderWireframe"` Fog WebSceneFog `json:"fog"` Background coloring.WebColor `json:"background"` Lighting coloring.WebColor `json:"lighting"` Ground coloring.WebColor `json:"ground"` }
func DefaultWebScene ¶
func DefaultWebScene() *WebScene
Click to show internal directories.
Click to hide internal directories.