0ad/binaries/data/mods/public/simulation/components/WallSet.js
s0600204 da35f63279 Add help comments to WallPiece component schema
Also resolves whitespace issue in WallSet component breaking structree
and rmgen
wallbuilder when wall curve pieces are listed separated with newlines (&
tabs)
instead of single spaces.

Requested by: Nescio
Refs: #2944, D900

This was SVN commit r23684.
2020-05-21 04:34:13 +00:00

55 lines
1.8 KiB
JavaScript

function WallSet() {}
WallSet.prototype.Schema =
"<a:help></a:help>" +
"<a:example>" +
"</a:example>" +
"<element name='Templates'>" +
"<interleave>" +
"<element name='Tower' a:help='Template name of the tower piece'>" +
"<text/>" +
"</element>" +
"<element name='Gate' a:help='Template name of the gate piece'>" +
"<text/>" +
"</element>" +
"<element name='WallLong' a:help='Template name of the long wall segment'>" +
"<text/>" +
"</element>" +
"<element name='WallMedium' a:help='Template name of the medium-size wall segment'>" +
"<text/>" +
"</element>" +
"<element name='WallShort' a:help='Template name of the short wall segment'>" +
"<text/>" +
"</element>" +
"<optional>" +
"<element name='WallCurves' a:help='Whitespace-separated list of template names of curving wall segments.'>" +
"<text/>" +
"</element>" +
"</optional>" +
"<optional>" +
"<element name='WallEnd'>" +
"<text/>" +
"</element>" +
"</optional>" +
"<optional>" +
"<element name='Fort'>" +
"<text/>" +
"</element>" +
"</optional>" +
"</interleave>" +
"</element>" +
"<element name='MinTowerOverlap' a:help='Maximum fraction that wall segments are allowed to overlap towers, where 0 signifies no overlap and 1 full overlap'>" +
"<data type='decimal'><param name='minInclusive'>0.0</param><param name='maxInclusive'>1.0</param></data>" +
"</element>" +
"<element name='MaxTowerOverlap' a:help='Minimum fraction that wall segments are required to overlap towers, where 0 signifies no overlap and 1 full overlap'>" +
"<data type='decimal'><param name='minInclusive'>0.0</param><param name='maxInclusive'>1.0</param></data>" +
"</element>";
WallSet.prototype.Init = function()
{
};
WallSet.prototype.Serialize = null;
Engine.RegisterComponentType(IID_WallSet, "WallSet", WallSet);