Documentation ¶
Overview ¶
Package wxml173 defines the types required to read a Worldographer v1.73 file.
Index ¶
- type Configuration
- type Feature
- type FeatureConfig
- type Features
- type GridAndNumbering
- type Information
- type Informations
- type Label
- type LabelStyle
- type Labels
- type Map
- type MapKey
- type MapLayer
- type Note
- type Notes
- type Point
- type Shape
- type ShapeConfig
- type ShapeStyle
- type Shapes
- type TerrainConfig
- type TerrainMap
- type TextConfig
- type TextureConfig
- type TileRow
- type Tiles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { // elements TerrainConfig []TerrainConfig `xml:"terrain-config"` FeatureConfig []FeatureConfig `xml:"feature-config"` TextureConfig []TextureConfig `xml:"texture-config"` TextConfig []TextConfig `xml:"text-config"` ShapeConfig []ShapeConfig `xml:"shape-config"` }
type Feature ¶
type Feature struct { // attributes Type string `xml:"type,attr"` Rotate float64 `xml:"rotate,attr"` Uuid string `xml:"uuid,attr"` MapLayer string `xml:"mapLayer,attr"` IsFlipHorizontal bool `xml:"isFlipHorizontal,attr"` IsFlipVertical bool `xml:"isFlipVertical,attr"` Scale float64 `xml:"scale,attr"` ScaleHt float64 `xml:"scaleHt,attr"` Tags string `xml:"tags,attr"` Color string `xml:"color,attr"` RingColor string `xml:"ringcolor,attr"` IsGMOnly bool `xml:"isGMOnly,attr"` IsPlaceFreely bool `xml:"isPlaceFreely,attr"` LabelPosition string `xml:"labelPosition,attr"` LabelDistance float64 `xml:"labelDistance,attr"` IsWorld bool `xml:"isWorld,attr"` IsContinent bool `xml:"isContinent,attr"` IsKingdom bool `xml:"isKingdom,attr"` IsProvince bool `xml:"isProvince,attr"` IsFillHexBottom bool `xml:"isFillHexBottom,attr"` IsHideTerrainIcon bool `xml:"isHideTerrainIcon,attr"` // elements Location struct { // attributes ViewLevel string `xml:"viewLevel,attr"` X float64 `xml:"x,attr"` Y float64 `xml:"y,attr"` } `xml:"location"` Label Label `xml:"label"` InnerText string `xml:",chardata"` }
type FeatureConfig ¶
type FeatureConfig struct { // elements InnerText string `xml:",chardata"` }
type GridAndNumbering ¶
type GridAndNumbering struct { // attributes Color0 string `xml:"color0,attr"` Color1 string `xml:"color1,attr"` Color2 string `xml:"color2,attr"` Color3 string `xml:"color3,attr"` Color4 string `xml:"color4,attr"` Width0 float64 `xml:"width0,attr"` Width1 float64 `xml:"width1,attr"` Width2 float64 `xml:"width2,attr"` Width3 float64 `xml:"width3,attr"` Width4 float64 `xml:"width4,attr"` GridOffsetContinentKingdomX float64 `xml:"gridOffsetContinentKingdomX,attr"` GridOffsetContinentKingdomY float64 `xml:"gridOffsetContinentKingdomY,attr"` GridOffsetWorldContinentX float64 `xml:"gridOffsetWorldContinentX,attr"` GridOffsetWorldContinentY float64 `xml:"gridOffsetWorldContinentY,attr"` GridOffsetWorldKingdomX float64 `xml:"gridOffsetWorldKingdomX,attr"` GridOffsetWorldKingdomY float64 `xml:"gridOffsetWorldKingdomY,attr"` GridSquare int `xml:"gridSquare,attr"` GridSquareHeight float64 `xml:"gridSquareHeight,attr"` GridSquareWidth float64 `xml:"gridSquareWidth,attr"` GridOffsetX float64 `xml:"gridOffsetX,attr"` GridOffsetY float64 `xml:"gridOffsetY,attr"` NumberFont string `xml:"numberFont,attr"` NumberColor string `xml:"numberColor,attr"` NumberSize int `xml:"numberSize,attr"` NumberStyle string `xml:"numberStyle,attr"` NumberFirstCol int `xml:"numberFirstCol,attr"` NumberFirstRow int `xml:"numberFirstRow,attr"` NumberOrder string `xml:"numberOrder,attr"` NumberPosition string `xml:"numberPosition,attr"` NumberPrePad string `xml:"numberPrePad,attr"` NumberSeparator string `xml:"numberSeparator,attr"` }
type Information ¶
type Information struct { // attributes Uuid string `xml:"uuid,attr"` Type string `xml:"type,attr"` Title string `xml:"title,attr"` Rulers string `xml:"rulers,attr"` // ? Government string `xml:"government,attr"` // ? Cultures string `xml:"cultures,attr"` // ? Language string `xml:"language,attr"` // ? ReligionType string `xml:"religionType,attr"` // ? Culture string `xml:"culture,attr"` // ? HolySymbol string `xml:"holySymbol,attr"` // ? Domains string `xml:"domains,attr"` // ? // elements Details []Information `xml:"information"` InnerText string `xml:",chardata"` }
type Informations ¶
type Informations struct { // elements Informations []Information `xml:"information"` InnerText string `xml:",chardata"` }
type Label ¶
type Label struct { // attributes MapLayer string `xml:"mapLayer,attr"` Style string `xml:"style,attr"` FontFace string `xml:"fontFace,attr"` Color string `xml:"color,attr"` OutlineColor string `xml:"outlineColor,attr"` OutlineSize float64 `xml:"outlineSize,attr"` Rotate float64 `xml:"rotate,attr"` IsBold bool `xml:"isBold,attr"` IsItalic bool `xml:"isItalic,attr"` IsWorld bool `xml:"isWorld,attr"` IsContinent bool `xml:"isContinent,attr"` IsKingdom bool `xml:"isKingdom,attr"` IsProvince bool `xml:"isProvince,attr"` IsGMOnly bool `xml:"isGMOnly,attr"` Tags string `xml:"tags,attr"` BackgroundColor string `xml:"backgroundColor,attr"` // elements Location struct { // attributes ViewLevel string `xml:"viewLevel,attr"` X float64 `xml:"x,attr"` Y float64 `xml:"y,attr"` Scale float64 `xml:"scale,attr"` } `xml:"location"` InnerText string `xml:",chardata"` }
type LabelStyle ¶
type LabelStyle struct { // attributes Name string `xml:"name,attr"` FontFace string `xml:"fontFace,attr"` Scale float64 `xml:"scale,attr"` IsBold bool `xml:"isBold,attr"` IsItalic bool `xml:"isItalic,attr"` Color string `xml:"color,attr"` BackgroundColor string `xml:"backgroundColor,attr"` OutlineSize float64 `xml:"outlineSize,attr"` OutlineColor string `xml:"outlineColor,attr"` }
type Map ¶
type Map struct { XMLName xml.Name `xml:"map"` // attributes Type string `xml:"type,attr"` // "WORLD" Version string `xml:"version,attr"` // "1.73" LastViewLevel string `xml:"lastViewLevel,attr"` // "WORLD" ContinentFactor int `xml:"continentFactor,attr"` // "-1" KingdomFactor int `xml:"kingdomFactor,attr"` // "-1" ProvinceFactor int `xml:"provinceFactor,attr"` // "-1" WorldToContinentHOffset float64 `xml:"worldToContinentHOffset,attr"` // "0.0" ContinentToKingdomHOffset float64 `xml:"continentToKingdomHOffset,attr"` // "0.0" KingdomToProvinceHOffset float64 `xml:"kingdomToProvinceHOffset,attr"` // "0.0" WorldToContinentVOffset float64 `xml:"worldToContinentVOffset,attr"` // "0.0" ContinentToKingdomVOffset float64 `xml:"continentToKingdomVOffset,attr"` // "0.0" KingdomToProvinceVOffset float64 `xml:"kingdomToProvinceVOffset,attr"` // "0.0" HexWidth float64 `xml:"hexWidth,attr"` // "120.97791408032022" HexHeight float64 `xml:"hexHeight,attr"` // "104.78814558711076" HexOrientation string `xml:"hexOrientation,attr"` // "COLUMNS" MapProjection string `xml:"mapProjection,attr"` // "FLAT" ShowNotes bool `xml:"showNotes,attr"` // "true" ShowGMOnly bool `xml:"showGMOnly,attr"` // "false" ShowGMOnlyGlow bool `xml:"showGMOnlyGlow,attr"` // "false" ShowFeatureLabels bool `xml:"showFeatureLabels,attr"` // "true" ShowGrid bool `xml:"showGrid,attr"` // "true" ShowGridNumbers bool `xml:"showGridNumbers,attr"` // "false" ShowShadows bool `xml:"showShadows,attr"` // "true" TriangleSize int `xml:"triangleSize,attr"` // "12" // elements GridAndNumbering GridAndNumbering `xml:"gridandnumbering"` TerrainMap TerrainMap `xml:"terrainmap"` MapLayers []MapLayer `xml:"maplayer"` Tiles Tiles `xml:"tiles"` MapKey MapKey `xml:"mapkey"` Features Features `xml:"features"` Labels Labels `xml:"labels"` Shapes Shapes `xml:"shapes"` Notes Notes `xml:"notes"` Informations Informations `xml:"informations"` Configuration Configuration `xml:"configuration"` }
func (*Map) BaseVersion ¶
BaseVersion implements the adapter.WXML interface.
type MapKey ¶
type MapKey struct { // attributes PositionX float64 `xml:"positionx,attr"` PositionY float64 `xml:"positiony,attr"` Viewlevel string `xml:"viewlevel,attr"` Height float64 `xml:"height,attr"` BackgroundColor string `xml:"backgroundcolor,attr"` BackgroundOpacity float64 `xml:"backgroundopacity,attr"` TitleText string `xml:"titleText,attr"` TitleFontFace string `xml:"titleFontFace,attr"` TitleFontColor string `xml:"titleFontColor,attr"` TitleFontBold bool `xml:"titleFontBold,attr"` TitleFontItalic bool `xml:"titleFontItalic,attr"` TitleScale float64 `xml:"titleScale,attr"` ScaleText string `xml:"scaleText,attr"` ScaleFontFace string `xml:"scaleFontFace,attr"` ScaleFontColor string `xml:"scaleFontColor,attr"` ScaleFontBold bool `xml:"scaleFontBold,attr"` ScaleFontItalic bool `xml:"scaleFontItalic,attr"` ScaleScale float64 `xml:"scaleScale,attr"` EntryFontFace string `xml:"entryFontFace,attr"` EntryFontColor string `xml:"entryFontColor,attr"` EntryFontBold bool `xml:"entryFontBold,attr"` EntryFontItalic bool `xml:"entryFontItalic,attr"` EntryScale float64 `xml:"entryScale,attr"` }
type Shape ¶
type Shape struct { // attributes BbHeight float64 `xml:"bbHeight,attr"` BbIterations int `xml:"bbIterations,attr"` BbWidth float64 `xml:"bbWidth,attr"` CreationType string `xml:"creationType,attr"` CurrentShapeViewLevel string `xml:"currentShapeViewLevel,attr"` DsColor string `xml:"dsColor,attr"` DsOffsetX float64 `xml:"dsOffsetX,attr"` DsOffsetY float64 `xml:"dsOffsetY,attr"` DsRadius float64 `xml:"dsRadius,attr"` DsSpread float64 `xml:"dsSpread,attr"` FillRule string `xml:"fillRule,attr"` FillTexture string `xml:"fillTexture,attr"` HighestViewLevel string `xml:"highestViewLevel,attr"` InsChoke float64 `xml:"insChoke,attr"` InsColor string `xml:"insColor,attr"` InsOffsetX float64 `xml:"insOffsetX,attr"` InsOffsetY float64 `xml:"insOffsetY,attr"` InsRadius float64 `xml:"insRadius,attr"` IsBoxBlur bool `xml:"isBoxBlur,attr"` IsContinent bool `xml:"isContinent,attr"` IsCurve bool `xml:"isCurve,attr"` IsDropShadow bool `xml:"isDropShadow,attr"` IsGMOnly bool `xml:"isGMOnly,attr"` IsInnerShadow bool `xml:"isInnerShadow,attr"` IsKingdom bool `xml:"isKingdom,attr"` IsMatchTileBorders bool `xml:"isMatchTileBorders,attr"` IsProvince bool `xml:"isProvince,attr"` IsSnapVertices bool `xml:"isSnapVertices,attr"` IsWorld bool `xml:"isWorld,attr"` LineCap string `xml:"lineCap,attr"` LineJoin string `xml:"lineJoin,attr"` MapLayer string `xml:"mapLayer,attr"` Opacity float64 `xml:"opacity,attr"` StrokeColor string `xml:"strokeColor,attr"` StrokeTexture string `xml:"strokeTexture,attr"` StrokeType string `xml:"strokeType,attr"` StrokeWidth float64 `xml:"strokeWidth,attr"` Tags string `xml:"tags,attr"` Type string `xml:"type,attr"` // elements Points []Point `xml:"p"` }
type ShapeConfig ¶
type ShapeConfig struct { // elements ShapeStyles []ShapeStyle `xml:"shapestyle"` InnerText string `xml:",chardata"` }
type ShapeStyle ¶
type ShapeStyle struct { // attributes BbHeight float64 `xml:"bbHeight,attr"` BbIterations int `xml:"bbIterations,attr"` BbWidth float64 `xml:"bbWidth,attr"` BoxBlur bool `xml:"boxBlur,attr"` DropShadow bool `xml:"dropShadow,attr"` DsOffsetX float64 `xml:"dsOffsetX,attr"` DsOffsetY float64 `xml:"dsOffsetY,attr"` DsRadius float64 `xml:"dsRadius,attr"` DsSpread float64 `xml:"dsSpread,attr"` Dscolor string `xml:"dscolor,attr"` FillPaint string `xml:"fillPaint,attr"` FillTexture string `xml:"fillTexture,attr"` InnerShadow bool `xml:"innerShadow,attr"` InsChoke float64 `xml:"insChoke,attr"` InsColor string `xml:"insColor,attr"` InsOffsetX float64 `xml:"insOffsetX,attr"` InsOffsetY float64 `xml:"insOffsetY,attr"` InsRadius float64 `xml:"insRadius,attr"` IsFractal bool `xml:"isFractal,attr"` Name string `xml:"name,attr"` Opacity float64 `xml:"opacity,attr"` SnapVertices bool `xml:"snapVertices,attr"` StrokePaint string `xml:"strokePaint,attr"` StrokeTexture string `xml:"strokeTexture,attr"` StrokeType string `xml:"strokeType,attr"` StrokeWidth float64 `xml:"strokeWidth,attr"` Tags string `xml:"tags,attr"` }
type TerrainConfig ¶
type TerrainConfig struct { // elements InnerText string `xml:",chardata"` }
type TerrainMap ¶
type TerrainMap struct { // elements InnerText string `xml:",chardata"` }
type TextConfig ¶
type TextConfig struct { // elements LabelStyles []LabelStyle `xml:"labelstyle"` InnerText string `xml:",chardata"` }
type TextureConfig ¶
type TextureConfig struct { // elements InnerText string `xml:",chardata"` }
Click to show internal directories.
Click to hide internal directories.