Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Avatar ¶
type Avatar struct { ID string User *entities.User Character *characters.Character }
Avatar ... default active entity that moves in the world Avatars can be either controlled by Players/Users or be attached/belong to bots Once a user is logged in he automatically gets attached his last used aavatar
type Game ¶
type Game struct { // access to repository data Facade service.Facade SystemUser *entities.User OnUserJoined chan *m.UserJoined OnUserQuit chan *m.UserQuit Receivers []Receiver CommandProcessor *c.CommandProcessor RoomProcessor *c.RoomProcessor Avatars map[string]*Avatar // contains filtered or unexported fields }
Game ... contains live game state
func (*Game) OnMessageReceived ¶
func (g *Game) OnMessageReceived() chan interface{}
OnMessageReceived returns onMessageReceived channel
Click to show internal directories.
Click to hide internal directories.