package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Jul 13, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Parse(obj interface{}, xmlReader io.Reader)
type EffectAttr struct {
XMLName xml.Name `xml:"effect"`
Id string `xml:"id,attr"`
Lib string `xml:"lib,attr"`
Type string `xml:"type,attr"`
Revision string `xml:"revision,attr"`
}
type EffectMap struct {
XMLName xml.Name `xml:"map"`
Effect []EffectAttr `xml:"effect"`
}
type FigureLib struct {
XMLName xml.Name `xml:"lib"`
Part []FigurePart `xml:"part"`
Id string `xml:"id,attr"`
Revision string `xml:"revision,attr"`
}
type FigureMap struct {
XMLName xml.Name `xml:"map"`
Lib []FigureLib `xml:"lib"`
}
type FigurePart struct {
XMLName xml.Name `xml:"part"`
Id string `xml:"id,attr"`
Type string `xml:"type,attr"`
}
type FurniData struct {
XMLName xml.Name `xml:"furnidata"`
RoomItemType RoomItemType `xml:"roomitemtypes"`
WallItemType WallItemType `xml:"wallitemtypes"`
}
type FurniType struct {
XMLName xml.Name `xml:"furnitype"`
Id string `xml:"id,attr"`
ClassName string `xml:"classname,attr"`
Revision string `xml:"revision"`
}
type RoomItemType struct {
XMLName xml.Name `xml:"roomitemtypes"`
FurniType []FurniType `xml:"furnitype"`
}
type WallItemType struct {
XMLName xml.Name `xml:"wallitemtypes"`
FurniType []FurniType `xml:"furnitype"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.