Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ControlsConstant ¶
type ControlsConstant struct {
Name string `xml:"name,attr"`
}
ControlsConstant holds ControlsName
type ControlsControl ¶
type ControlsControl struct { Name string `xml:"name,attr"` Constant ControlsConstant `xml:"constant"` }
ControlsControl Why is this structured this way?
type ControlsGame ¶
type ControlsGame struct { RomName string `xml:"romname,attr"` GameName string `xml:"gamename,attr"` Players int `xml:"numPlayers,attr"` Alternating bool `xml:"alternating,attr"` Mirrored bool `xml:"mirrored,attr"` UsesService bool `xml:"usesService,attr"` Tilt bool `xml:"tilt,attr"` Cocktail bool `xml:"cocktail,attr"` PlayerControls []ControlsPlayer `xml:"player"` }
ControlsGame all control related to a game element
type ControlsName ¶
ControlsName Human description of control
func GetControlsNames ¶
func GetControlsNames(controlGame ControlsGame) []ControlsName
GetControlsNames find all names for a certain constant
type ControlsPlayer ¶
type ControlsPlayer struct {
Controls []ControlsControl `xml:"controls>control"`
}
ControlsPlayer I give up
Click to show internal directories.
Click to hide internal directories.