Differential D577 Diff 2315 binaries/data/mods/public/simulation/components/tests/test_UnitMotionFlying.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/tests/test_UnitMotionFlying.js
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
}); | }); | ||||
AddMock(entity, IID_RangeManager, { | AddMock(entity, IID_RangeManager, { | ||||
"GetLosCircular": () => true | "GetLosCircular": () => true | ||||
}); | }); | ||||
AddMock(entity, IID_Terrain, { | AddMock(entity, IID_Terrain, { | ||||
"GetGroundLevel": () => 4, | "GetGroundLevel": () => 4, | ||||
"GetTilesPerSide": () => 5 | "GetMapSize": () => 20 | ||||
}); | }); | ||||
AddMock(entity, IID_WaterManager, { | AddMock(entity, IID_WaterManager, { | ||||
"GetWaterLevel": () => 5 | "GetWaterLevel": () => 5 | ||||
}); | }); | ||||
TS_ASSERT_EQUALS(cmpUnitMotionFlying.GetCurrentSpeed(), 0); | TS_ASSERT_EQUALS(cmpUnitMotionFlying.GetCurrentSpeed(), 0); | ||||
cmpUnitMotionFlying.OnUpdate({ "turnLength": 500 }); | cmpUnitMotionFlying.OnUpdate({ "turnLength": 500 }); | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator