mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 03:51:32 +00:00
9034335d22
(Fairly sure I've got them right this time.)
Refs: #2944, D900, da35f63279
This was SVN commit r23687.
34 lines
1.4 KiB
JavaScript
34 lines
1.4 KiB
JavaScript
function WallPiece() {}
|
|
|
|
WallPiece.prototype.Schema =
|
|
"<a:help></a:help>" +
|
|
"<a:example>" +
|
|
"</a:example>" +
|
|
"<element name='Length' a:help='Meters. Used in rmgen wallbuilder and the in-game wall-placer.'>" +
|
|
"<ref name='nonNegativeDecimal'/>" +
|
|
"</element>" +
|
|
"<optional>" +
|
|
"<element name='Orientation' a:help='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.'>" +
|
|
"<ref name='nonNegativeDecimal'/>" +
|
|
"</element>" +
|
|
"</optional>" +
|
|
"<optional>" +
|
|
"<element name='Indent' a:help='Meters. Default: 0. Used in rmgen wallbuilder. Permits piece to be placed in front (-ve value) or behind (+ve value) a wall.'>" +
|
|
"<data type='decimal'/>" +
|
|
"</element>" +
|
|
"</optional>" +
|
|
"<optional>" +
|
|
"<element name='Bend' a:help='Multiples of Pi, measured anti-clockwise. Default: 0. Used in rmgen wallbuilder. The difference in orientation between the ends of a wallpiece.'>" +
|
|
"<data type='decimal'/>" +
|
|
"</element>" +
|
|
"</optional>";
|
|
|
|
|
|
WallPiece.prototype.Init = function()
|
|
{
|
|
};
|
|
|
|
WallPiece.prototype.Serialize = null;
|
|
|
|
Engine.RegisterComponentType(IID_WallPiece, "WallPiece", WallPiece);
|