WallPiece¶
Examples¶
Example¶
XML Elements¶
The following elements can be used within this component:
WallPiece¶
Length¶
Meters. Used in rmgen wallbuilder and the in-game wall-placer.
Type: non-negative decimal
Path: WallPiece/Length
Orientation¶
Multiples of Pi, measured anti-clockwise. Default: 1; full revolution: 2. Used in rmgen wallbuilder. How the wallpiece should be rotated so it is orientated the same way as every other wallpiece: with the "line" of the wall running along a map's z axis and the "outside face" towards positive x. If the piece bends (see below), the orientation should be that of the start of the wallpiece, not the middle.
Type: non-negative decimal
Path: WallPiece/Orientation
Indent¶
Meters. Default: 0. Used in rmgen wallbuilder. Permits piece to be placed in front (-ve value) or behind (+ve value) a wall.
Type: decimal (e.g. -10.0 or 0.0 or 2.5)
Path: WallPiece/Indent
Bend¶
Multiples of Pi, measured anti-clockwise. Default: 0. Used in rmgen wallbuilder. The difference in orientation between the ends of a wallpiece.
Type: decimal (e.g. -10.0 or 0.0 or 2.5)
Path: WallPiece/Bend
RELAX NG Grammar¶
<define name="component.WallPiece">
<element name="WallPiece">
<interleave>
<element name="Length">
<ref name="nonNegativeDecimal"/>
</element>
<optional>
<element name="Orientation">
<ref name="nonNegativeDecimal"/>
</element>
</optional>
<optional>
<element name="Indent">
<data type="decimal"/>
</element>
</optional>
<optional>
<element name="Bend">
<data type="decimal"/>
</element>
</optional>
</interleave>
</element>
</define>