Differential D2376 Diff 11312 binaries/data/mods/public/simulation/components/tests/test_GarrisonHolder.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/tests/test_GarrisonHolder.js
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | else if (i == 34) | ||||
AddMock(i, IID_Ownership, { | AddMock(i, IID_Ownership, { | ||||
"GetOwner": () => enemyPlayer | "GetOwner": () => enemyPlayer | ||||
}); | }); | ||||
else | else | ||||
AddMock(i, IID_Ownership, { | AddMock(i, IID_Ownership, { | ||||
"GetOwner": () => friendlyPlayer | "GetOwner": () => friendlyPlayer | ||||
}); | }); | ||||
AddMock(i, IID_Garrisonable, {}); | AddMock(i, IID_Garrisonable, { | ||||
"Garrison": entity => {}, | |||||
"UnGarrison": () => {} | |||||
}); | |||||
AddMock(i, IID_Position, { | AddMock(i, IID_Position, { | ||||
"GetHeightOffset": () => 0, | "GetHeightOffset": () => 0, | ||||
"GetPosition": () => new Vector3D(4, 3, 25), | "GetPosition": () => new Vector3D(4, 3, 25), | ||||
"GetRotation": () => new Vector3D(4, 0, 6), | "GetRotation": () => new Vector3D(4, 0, 6), | ||||
"GetTurretParent": () => INVALID_ENTITY, | "GetTurretParent": () => INVALID_ENTITY, | ||||
"IsInWorld": () => true, | "IsInWorld": () => true, | ||||
"JumpTo": (posX, posZ) => {}, | "JumpTo": (posX, posZ) => {}, | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator