Documentation
¶
Overview ¶
Generated with cb-generator. DO NOT EDIT
Index ¶
- func ProcessXMLMessage(message string, c Controller) (err error)
- func ProcessXMLNode(node *parser.Node, c Controller) (err error)
- type Answer
- type Callbacks
- func (c *Callbacks) Auth(a0 string)
- func (c *Callbacks) Bye()
- func (c *Callbacks) Call(a0 Answer, a1 tile.Instances)
- func (c *Callbacks) CancelJoin()
- func (c *Callbacks) Chat(a0 string)
- func (c *Callbacks) Drop(a0 tile.Instance)
- func (c *Callbacks) GoOK()
- func (c *Callbacks) Hello(a0 string, a1 string, a2 tbase.Sex)
- func (c *Callbacks) Join(a0 int, a1 int, a2 bool)
- func (c *Callbacks) NextReady()
- func (c *Callbacks) Ping()
- func (c *Callbacks) Reach(a0 tile.Instance)
- func (c *Callbacks) RequestLobbyStatus(a0 int, a1 int)
- type Controller
- type XMLWriter
- func (w XMLWriter) Auth(value string)
- func (w XMLWriter) Bye()
- func (w XMLWriter) Call(t Answer, tiles tile.Instances)
- func (w XMLWriter) CancelJoin()
- func (w XMLWriter) Chat(message string)
- func (w XMLWriter) Drop(t tile.Instance)
- func (w XMLWriter) GoOK()
- func (w XMLWriter) Hello(name string, tid string, sex tbase.Sex)
- func (w XMLWriter) Join(lobbyNumber int, lobbyType int, rejoin bool)
- func (w XMLWriter) NextReady()
- func (w XMLWriter) Ping()
- func (w XMLWriter) Reach(t tile.Instance)
- func (w XMLWriter) RequestLobbyStatus(v, V int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessXMLMessage ¶
func ProcessXMLMessage(message string, c Controller) (err error)
func ProcessXMLNode ¶
func ProcessXMLNode(node *parser.Node, c Controller) (err error)
Types ¶
type Callbacks ¶
type Callbacks struct { CbAuth func(string) CbBye func() CbCall func(Answer, tile.Instances) CbCancelJoin func() CbChat func(string) CbDrop func(tile.Instance) CbGoOK func() CbHello func(string, string, tbase.Sex) CbJoin func(int, int, bool) CbNextReady func() CbPing func() CbReach func(tile.Instance) CbRequestLobbyStatus func(int, int) Default func() }
func (*Callbacks) CancelJoin ¶
func (c *Callbacks) CancelJoin()
func (*Callbacks) RequestLobbyStatus ¶
type Controller ¶
type Controller interface { Hello(name string, tid string, sex tbase.Sex) Auth(value string) // TODO: research values // Could be both big and small RequestLobbyStatus(v, V int) // PXR Join(lobbyNumber int, lobbyType int, rejoin bool) CancelJoin() Drop(t tile.Instance) Call(a Answer, tiles tile.Instances) Reach(t tile.Instance) Ping() // Z GoOK() NextReady() Bye() Chat(message string) }
This is how server looks from client point of view
type XMLWriter ¶
func NewXMLWriter ¶
func NewXMLWriter() XMLWriter
func (XMLWriter) CancelJoin ¶
func (w XMLWriter) CancelJoin()
func (XMLWriter) RequestLobbyStatus ¶
Click to show internal directories.
Click to hide internal directories.