townhall

package
Version: v0.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Nov 1, 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.Room // cuid => room
}
var Building Townhall = Create()

func Create

func Create() 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