Documentation ¶
Index ¶
- type Game
- func (game *Game) DropPlayerSession(id string)
- func (game *Game) GetPlayerSession(id string) *player.Player
- func (game *Game) GetStarSystem(name string) *starsystem.StarSystem
- func (game *Game) GetStarSystems() []string
- func (game *Game) Init() error
- func (game *Game) Movement(player *player.Player, move *mathf.Vec3, rotation *mathf.Vec3)
- func (game *Game) Ready(player *player.Player) error
- func (game *Game) SessionByName(id string, name string) (*player.Player, error)
- func (game *Game) Shutdown(directory string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) DropPlayerSession ¶
DropPlayerSession for given id from Game
func (*Game) GetPlayerSession ¶
GetPlayerSession returns the session for the player
func (*Game) GetStarSystem ¶
func (game *Game) GetStarSystem(name string) *starsystem.StarSystem
func (*Game) GetStarSystems ¶
func (*Game) SessionByName ¶
Click to show internal directories.
Click to hide internal directories.