package
Version:
v0.0.0-...-f1dee3b
Opens a new window with list of versions in this module.
Published: May 9, 2019
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
type Client interface {
WritePump()
ReadPump()
Send(message []byte)
GetSend() chan []byte
GetID() int32
Close()
}
Client is equivalent to a user connection.
NewClient returns new client given hub
type IGame interface {
ProcessInput(message []byte)
RemovePlayerByClientID(clientID int32)
}
IGame is the interface Game master expose to Hub. If Hub want to call Game master, it needs to call from IGame
Source Files
¶
Click to show internal directories.
Click to hide internal directories.