0ad/binaries/data/mods/public/simulation/components/ValueModificationManager.js
2016-11-23 13:02:58 +00:00

18 lines
603 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.Serialize = null;
ValueModificationManager.prototype.ApplyModifications = function(valueName, currentValue, entity)
{
return ApplyValueModificationsToEntity(valueName, currentValue, entity);
};
Engine.RegisterSystemComponentType(IID_ValueModificationManager, "ValueModificationManager", ValueModificationManager);