Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SaveData ¶
type SaveData struct { // Doc stores the userfile XML data parsed as etree.Elements. // It shouldn't be modified, use a deep copy on export and operations. Doc *etree.Document MainPawn entities.Pawn FirstPawn entities.Pawn SecondPawn entities.Pawn }
func NewSaveDataFromDataXML ¶
NewSaveDataFromDataXML creates a SaveData from a string containing the DataXML.
func (*SaveData) GetPawnMap ¶
stackoverflow.com/a/17306470 and more annoyances. func (sd *SaveData) MarshalJSON() ([]byte, error).
func (*SaveData) PawnRootCount ¶
PawnRootCount gets the count attribute from the parent array of the pawn tree. Tested with a new save and it's always 3, with zeroed values.
Click to show internal directories.
Click to hide internal directories.