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 ¶
需要注意的是,牌谱并未记录舍牌是手切还是摸切, 这里认为在摸牌后,只要切出的牌和摸的牌相同就认为是摸切,否则认为是手切
func (*RecordAction) UnmarshalXML ¶
func (a *RecordAction) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
Click to show internal directories.
Click to hide internal directories.