mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-10 17:05:48 -07:00
17 lines
545 B
JavaScript
17 lines
545 B
JavaScript
|
|
function ValueModificationManager() {};
|
||
|
|
|
||
|
|
/*
|
||
|
|
* A component to give the C++ defined components access to all value modifying components
|
||
|
|
* via the helper script.
|
||
|
|
*/
|
||
|
|
ValueModificationManager.prototype.Schema =
|
||
|
|
"<a:component type='system'/><empty/>";
|
||
|
|
|
||
|
|
ValueModificationManager.prototype.ApplyModifications = function(valueName, currentValue, entity)
|
||
|
|
{
|
||
|
|
return ApplyValueModificationsToEntity(valueName, currentValue, entity);
|
||
|
|
};
|
||
|
|
|
||
|
|
Engine.RegisterComponentType(IID_ValueModificationManager, "ValueModificationManager", ValueModificationManager);
|
||
|
|
|