mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 13:53:57 -07:00
Reviewed by: @Angen Comments by: @Freagarach Differential Revision: https://code.wildfiregames.com/D2492 This was SVN commit r23514.
16 lines
549 B
JavaScript
16 lines
549 B
JavaScript
Engine.LoadHelperScript("ValueModification.js");
|
|
Engine.LoadComponentScript("interfaces/AutoBuildable.js");
|
|
Engine.LoadComponentScript("interfaces/Foundation.js");
|
|
Engine.LoadComponentScript("interfaces/ModifiersManager.js");
|
|
Engine.LoadComponentScript("AutoBuildable.js");
|
|
|
|
const cmpBuildableAuto = ConstructComponent(10, "AutoBuildable", {
|
|
"Rate": "1.0"
|
|
});
|
|
|
|
TS_ASSERT_EQUALS(cmpBuildableAuto.GetRate(), 1);
|
|
|
|
const cmpBuildableNoRate = ConstructComponent(12, "AutoBuildable", {
|
|
"Rate": "0"
|
|
});
|
|
TS_ASSERT_EQUALS(cmpBuildableNoRate.GetRate(), 0);
|