Documentation ¶
Index ¶
- func ParseAgari(node *Node) (result *tbase.Agari, err error)
- func ParseRyuukyoku(node *Node) (r *tbase.Ryuukyoku, err error)
- func ParseSeed(in string) (ret tbase.Seed, err error)
- func SeedString(seed *tbase.Seed) string
- type Node
- func (node *Node) Check(key string) bool
- func (node *Node) Clone() *Node
- func (node *Node) FloatList(name string) []tbase.Float
- func (node *Node) GetDealer() tbase.Opponent
- func (node *Node) GetFinalScores() tbase.FinalScoreChanges
- func (node *Node) GetHai(name string) tile.Instances
- func (node *Node) GetHaiNum(id int) tile.Instances
- func (node *Node) GetHands() tbase.Hands
- func (node *Node) GetInit() (x tbase.Init, err error)
- func (node *Node) GetInstance(name string) tile.Instance
- func (node *Node) GetMeld() tbase.Meld
- func (node *Node) GetOpponent(key string) tbase.Opponent
- func (node *Node) GetScoreChanges() tbase.ScoreChanges
- func (node *Node) GetScores() tbase.Scores
- func (node *Node) GetScoresByName(name string) tbase.Scores
- func (node *Node) GetTableStatus() (status tbase.TableStatus, err error)
- func (node *Node) GetTiles(name string) tile.Tiles
- func (node *Node) GetWho() tbase.Opponent
- func (node *Node) Int(name string) int
- func (node *Node) IntList(name string) []int
- func (node *Node) IntPointer(name string) *int
- func (node *Node) Keys() []string
- func (node *Node) PString(name string) *string
- func (node *Node) String(name string) string
- func (node *Node) StringList(name string) []string
- func (node *Node) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (node *Node) Unused(name string)
- func (node *Node) ValidateUnused() error
- type NodeReader
- type Nodes
- type Root
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeedString ¶
Types ¶
type Node ¶
func (*Node) GetFinalScores ¶
func (node *Node) GetFinalScores() tbase.FinalScoreChanges
func (*Node) GetScoreChanges ¶
func (node *Node) GetScoreChanges() tbase.ScoreChanges
func (*Node) GetTableStatus ¶
func (node *Node) GetTableStatus() (status tbase.TableStatus, err error)
func (*Node) IntPointer ¶
func (*Node) StringList ¶
func (*Node) UnmarshalXML ¶
func (*Node) ValidateUnused ¶
type NodeReader ¶
type NodeReader struct { ReadCallback func(context.Context) (string, error) // contains filtered or unexported fields }
func NewNodeReader ¶
func NewNodeReader() *NodeReader
func (*NodeReader) Next ¶
func (r *NodeReader) Next() (node *Node, err error)
func (*NodeReader) Start ¶
func (r *NodeReader) Start(ctx context.Context) func()
Click to show internal directories.
Click to hide internal directories.