xml

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(obj interface{}, xmlReader io.Reader)

Types

type EffectAttr

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

type EffectMap struct {
	XMLName xml.Name     `xml:"map"`
	Effect  []EffectAttr `xml:"effect"`
}

type FigureLib

type FigureLib struct {
	XMLName  xml.Name     `xml:"lib"`
	Part     []FigurePart `xml:"part"`
	Id       string       `xml:"id,attr"`
	Revision string       `xml:"revision,attr"`
}

type FigureMap

type FigureMap struct {
	XMLName xml.Name    `xml:"map"`
	Lib     []FigureLib `xml:"lib"`
}

type FigurePart

type FigurePart struct {
	XMLName xml.Name `xml:"part"`
	Id      string   `xml:"id,attr"`
	Type    string   `xml:"type,attr"`
}

type FurniData

type FurniData struct {
	XMLName      xml.Name     `xml:"furnidata"`
	RoomItemType RoomItemType `xml:"roomitemtypes"`
	WallItemType WallItemType `xml:"wallitemtypes"`
}

type FurniType

type FurniType struct {
	XMLName   xml.Name `xml:"furnitype"`
	Id        string   `xml:"id,attr"`
	ClassName string   `xml:"classname,attr"`
	Revision  string   `xml:"revision"`
}

type RoomItemType

type RoomItemType struct {
	XMLName   xml.Name    `xml:"roomitemtypes"`
	FurniType []FurniType `xml:"furnitype"`
}

type WallItemType

type WallItemType struct {
	XMLName   xml.Name    `xml:"wallitemtypes"`
	FurniType []FurniType `xml:"furnitype"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL