forked from 0ad/0ad
Remove civ code hardcoding from SkirmishReplacer component. Refs #1198.
This was SVN commit r13947.
This commit is contained in:
parent
3624c591bd
commit
fecfda29f6
@ -1,18 +1,16 @@
|
|||||||
const civList = ["general", "athen", "brit", "cart", "celt", "gaul", "hele", "iber", "mace", "maur", "pers", "rome", "spart"];
|
|
||||||
|
|
||||||
function SkirmishReplacer() {}
|
function SkirmishReplacer() {}
|
||||||
|
|
||||||
|
SkirmishReplacer.prototype.Schema =
|
||||||
SkirmishReplacer.prototype.Schema = "";
|
"<optional>" +
|
||||||
for each (var civ in civList)
|
"<oneOrMore>" +
|
||||||
SkirmishReplacer.prototype.Schema +=
|
"<element a:help='Replacement template for the civ which this element is named after or general. If no element is defined for a civ the general element is used instead. If this element is empty the entity is just deleted. The general element gets used if no civ specific element is present and replaces {civ} with the civ code.'>" +
|
||||||
"<optional>" +
|
"<anyName/>" +
|
||||||
"<element name='"+civ+"' a:help='Replacement template for this civ. If this element is not present, the \"general\" element (with {civ} replaced by the civ code) is taken. If this element is empty, or not defined, and also no general element, this entity is just deleted.'>" +
|
"<interleave>" +
|
||||||
"<text/>" +
|
"<text/>" +
|
||||||
|
"</interleave>" +
|
||||||
"</element>" +
|
"</element>" +
|
||||||
"</optional>";
|
"</oneOrMore>" +
|
||||||
|
"</optional>";
|
||||||
|
|
||||||
|
|
||||||
SkirmishReplacer.prototype.Init = function()
|
SkirmishReplacer.prototype.Init = function()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user