townhall

package
v0.0.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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) AddHome

func (t *Townhall) AddHome(name string) *building.Home

func (*Townhall) AddRoad

func (t *Townhall) AddRoad(connection *websocket.Conn) (name string)

func (*Townhall) DestroyHome

func (t *Townhall) DestroyHome(name string)

func (*Townhall) ExistHome

func (t *Townhall) ExistHome(name string) bool

func (*Townhall) ExistRoad

func (t *Townhall) ExistRoad(name string) bool

func (*Townhall) GetHome

func (t *Townhall) GetHome(name string) *building.Home

func (*Townhall) GetRoad

func (t *Townhall) GetRoad(name string) *websocket.Conn

func (*Townhall) RemoveRoad

func (t *Townhall) RemoveRoad(name string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL