Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MissingInput = errors.New("missing strategy board input data") ParseError = errors.New("parse error: invalid strategy board") SectionParseError = errors.New("parse error: read unexpected section number") ObjectCountParseError = errors.New("parse error: unexpected number of objects in section") DrawUnexpectedObjectError = errors.New("draw error: unexpected object type") AssetNotFound = errors.New("asset not found") )
Functions ¶
Types ¶
type Board ¶
type BoardObjectFlag ¶
type BoardObjectFlag uint8
const ( Visible BoardObjectFlag = 1 << iota FlipHorizontal FlipVertical Locked )
type Object ¶
type Object struct {
TypeID int `json:"type_id"`
Text string `json:"text"`
Visible bool `json:"visible"`
FlipHorizontal bool `json:"flip_horizontal"`
FlipVertical bool `json:"flip_vertical"`
X int `json:"x"`
Y int `json:"y"`
Angle int `json:"angle"`
Color color.NRGBA `json:"color"`
Scale int `json:"scale"`
Params []int `json:"params"`
}
Click to show internal directories.
Click to hide internal directories.