Documentation ¶
Index ¶
- Constants
- func Init(store jui.Store)
- type Default
- func (d *Default) DidMount()
- func (d *Default) DidUnmount()
- func (d *Default) GetGrid() *ui.Grid
- func (d *Default) HandleServerEvent(*cpb.BroadcastMsg) bool
- func (d *Default) HandleUIEvent(ui.Event) bool
- func (d *Default) Reset() error
- func (d *Default) TimeTick()
- func (d *Default) WillMount(interface{})
- func (d *Default) WillUnmount()
- type Lobby
- type Room
Constants ¶
View Source
const ( LOBBY string = "/" ROOM string = "/room" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Default ¶
type Default struct {
// contains filtered or unexported fields
}
func NewDefaultComponent ¶
func (*Default) DidUnmount ¶
func (d *Default) DidUnmount()
func (*Default) HandleServerEvent ¶
func (d *Default) HandleServerEvent(*cpb.BroadcastMsg) bool
func (*Default) TimeTick ¶
func (d *Default) TimeTick()
the standard timetick is called every 0.05 sec
func (*Default) WillUnmount ¶
func (d *Default) WillUnmount()
type Room ¶
type Room struct { Default // contains filtered or unexported fields }
func (*Room) HandleServerEvent ¶
func (room *Room) HandleServerEvent(*cpb.BroadcastMsg) bool
func (*Room) WillUnmount ¶
func (room *Room) WillUnmount()
Click to show internal directories.
Click to hide internal directories.