Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/Trainer.js
Show All 14 Lines | Trainer.prototype.Schema = | ||||
"</optional>" + | "</optional>" + | ||||
"<optional>" + | "<optional>" + | ||||
"<element name='Entities' a:help='Space-separated list of entity template names that this entity can train. The special string \"{civ}\" will be automatically replaced by the civ code of the entity's owner, while the string \"{native}\" will be automatically replaced by the entity's civ code.'>" + | "<element name='Entities' a:help='Space-separated list of entity template names that this entity can train. The special string \"{civ}\" will be automatically replaced by the civ code of the entity's owner, while the string \"{native}\" will be automatically replaced by the entity's civ code.'>" + | ||||
"<attribute name='datatype'>" + | "<attribute name='datatype'>" + | ||||
"<value>tokens</value>" + | "<value>tokens</value>" + | ||||
"</attribute>" + | "</attribute>" + | ||||
"<text/>" + | "<text/>" + | ||||
"</element>" + | "</element>" + | ||||
"</optional>" + | |||||
"<optional>" + | |||||
"<element name='TrainCostMultiplier' a:help='Multiplier to modify resources cost and train time of entities with.'>" + | |||||
Resources.BuildSchema("nonNegativeDecimal", ["time"]) + | |||||
"</element>" + | |||||
"</optional>"; | "</optional>"; | ||||
/** | /** | ||||
* This object represents a batch of entities being trained. | * This object represents a batch of entities being trained. | ||||
* @param {string} templateName - The name of the template we ought to train. | * @param {string} templateName - The name of the template we ought to train. | ||||
* @param {number} count - The size of the batch to train. | * @param {number} count - The size of the batch to train. | ||||
* @param {number} trainer - The entity ID of our trainer. | * @param {number} trainer - The entity ID of our trainer. | ||||
* @param {string} metadata - Optionally any metadata to attach to us. | * @param {string} metadata - Optionally any metadata to attach to us. | ||||
▲ Show 20 Lines • Show All 688 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator