Documentation ¶
Index ¶
- type Connection
- type Manager
- func (manager *Manager) DropSession(id string) *Player
- func (manager *Manager) GetSession(id string) *Player
- func (manager *Manager) Init() error
- func (manager *Manager) SessionByName(id string, name string) (*Player, error)
- func (manager *Manager) UpdatePlayerStarSystem(id string, starSystem string) error
- type Player
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewPlayerManager ¶
func NewPlayerManager(persistenceManager *persistence.PersistenceManager) *Manager
func (*Manager) DropSession ¶
func (*Manager) GetSession ¶
GetSession the player for the given id, otherwise null
func (*Manager) SessionByName ¶
type Player ¶
type Player struct { ID string Name string Admin bool // game StarSystem *string // contains filtered or unexported fields }
func (*Player) AddConnection ¶
func (player *Player) AddConnection(connection Connection)
func (*Player) DropConnection ¶
func (player *Player) DropConnection(connection Connection)
Click to show internal directories.
Click to hide internal directories.