Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/TurretHolder.js
Show All 19 Lines | for (let point in points) | ||||
"allowedClasses": points[point].AllowedClasses?._string, | "allowedClasses": points[point].AllowedClasses?._string, | ||||
"angle": points[point].Angle ? +points[point].Angle * Math.PI / 180 : null, | "angle": points[point].Angle ? +points[point].Angle * Math.PI / 180 : null, | ||||
"entity": null, | "entity": null, | ||||
"template": points[point].Template, | "template": points[point].Template, | ||||
"ejectable": "Ejectable" in points[point] ? points[point].Ejectable == "true" : true | "ejectable": "Ejectable" in points[point] ? points[point].Ejectable == "true" : true | ||||
}); | }); | ||||
} | } | ||||
Update() { | |||||
warn("TurretHolder.js: Update() is not implemented"); | |||||
} | |||||
/** | /** | ||||
* Add a subunit as specified in the template. | * Add a subunit as specified in the template. | ||||
* This function creates an entity and places it on the turret point. | * This function creates an entity and places it on the turret point. | ||||
* | * | ||||
* @param {Object} turretPoint - A turret point to (re)create the predefined subunit for. | * @param {Object} turretPoint - A turret point to (re)create the predefined subunit for. | ||||
* | * | ||||
* @return {boolean} - Whether the turret creation has succeeded. | * @return {boolean} - Whether the turret creation has succeeded. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator