tenhou

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageReceiver

type MessageReceiver struct {
	// contains filtered or unexported fields
}

func NewMessageReceiver

func NewMessageReceiver() *MessageReceiver

func (*MessageReceiver) Get

func (mr *MessageReceiver) Get() []byte

func (*MessageReceiver) IsEmpty

func (mr *MessageReceiver) IsEmpty() bool

func (*MessageReceiver) Put

func (mr *MessageReceiver) Put(data []byte)

type Record

type Record struct {
	XMLName xml.Name        `xml:"mjloggm"`
	Actions []*RecordAction `xml:",any"`
}

type RecordAction

type RecordAction struct {
	XMLName xml.Name
	// contains filtered or unexported fields
}

需要注意的是,牌谱并未记录舍牌是手切还是摸切, 这里认为在摸牌后,只要切出的牌和摸的牌相同就认为是摸切,否则认为是手切

func (*RecordAction) UnmarshalXML

func (a *RecordAction) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

Jump to

Keyboard shortcuts

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