Documentation
¶
Index ¶
- type Townhall
- func (t *Townhall) AddHome(name string) *building.Home
- func (t *Townhall) AddRoad(connection *websocket.Conn) (name string)
- func (t *Townhall) DestroyHome(name string)
- func (t *Townhall) ExistHome(name string) bool
- func (t *Townhall) ExistRoad(name string) bool
- func (t *Townhall) GetHome(name string) *building.Home
- func (t *Townhall) GetRoad(name string) *websocket.Conn
- func (t *Townhall) RemoveRoad(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Townhall ¶
type Townhall struct { Road map[string]*websocket.Conn Building map[string]*building.Home // uuid => home Registeration map[string]*building.Home // cuid => home }
var Building Townhall = CreateTownhall()
func CreateTownhall ¶
func CreateTownhall() Townhall
func (*Townhall) DestroyHome ¶
func (*Townhall) RemoveRoad ¶
Click to show internal directories.
Click to hide internal directories.