Differential D3155 Diff 14521 ps/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/tests/test_GuiInterface.js
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | AddMock(100, IID_Player, { | ||||
"GetName": function() { return "Player 1"; }, | "GetName": function() { return "Player 1"; }, | ||||
"GetCiv": function() { return "gaia"; }, | "GetCiv": function() { return "gaia"; }, | ||||
"GetColor": function() { return { "r": 1, "g": 1, "b": 1, "a": 1 }; }, | "GetColor": function() { return { "r": 1, "g": 1, "b": 1, "a": 1 }; }, | ||||
"CanControlAllUnits": function() { return false; }, | "CanControlAllUnits": function() { return false; }, | ||||
"GetPopulationCount": function() { return 10; }, | "GetPopulationCount": function() { return 10; }, | ||||
"GetPopulationLimit": function() { return 20; }, | "GetPopulationLimit": function() { return 20; }, | ||||
"GetMaxPopulation": function() { return 200; }, | "GetMaxPopulation": function() { return 200; }, | ||||
"GetResourceCounts": function() { return { "food": 100 }; }, | "GetResourceCounts": function() { return { "food": 100 }; }, | ||||
"GetResourceGatherers": function() { return { "food": 1 }; }, | |||||
"GetPanelEntities": function() { return []; }, | "GetPanelEntities": function() { return []; }, | ||||
"IsTrainingBlocked": function() { return false; }, | "IsTrainingBlocked": function() { return false; }, | ||||
"GetState": function() { return "active"; }, | "GetState": function() { return "active"; }, | ||||
"GetTeam": function() { return -1; }, | "GetTeam": function() { return -1; }, | ||||
"GetLockTeams": function() { return false; }, | "GetLockTeams": function() { return false; }, | ||||
"GetCheatsEnabled": function() { return false; }, | "GetCheatsEnabled": function() { return false; }, | ||||
"GetDiplomacy": function() { return [-1, 1]; }, | "GetDiplomacy": function() { return [-1, 1]; }, | ||||
"IsAlly": function() { return false; }, | "IsAlly": function() { return false; }, | ||||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | AddMock(101, IID_Player, { | ||||
"GetName": function() { return "Player 2"; }, | "GetName": function() { return "Player 2"; }, | ||||
"GetCiv": function() { return "mace"; }, | "GetCiv": function() { return "mace"; }, | ||||
"GetColor": function() { return { "r": 1, "g": 0, "b": 0, "a": 1 }; }, | "GetColor": function() { return { "r": 1, "g": 0, "b": 0, "a": 1 }; }, | ||||
"CanControlAllUnits": function() { return true; }, | "CanControlAllUnits": function() { return true; }, | ||||
"GetPopulationCount": function() { return 40; }, | "GetPopulationCount": function() { return 40; }, | ||||
"GetPopulationLimit": function() { return 30; }, | "GetPopulationLimit": function() { return 30; }, | ||||
"GetMaxPopulation": function() { return 300; }, | "GetMaxPopulation": function() { return 300; }, | ||||
"GetResourceCounts": function() { return { "food": 200 }; }, | "GetResourceCounts": function() { return { "food": 200 }; }, | ||||
"GetResourceGatherers": function() { return { "food": 3 }; }, | |||||
"GetPanelEntities": function() { return []; }, | "GetPanelEntities": function() { return []; }, | ||||
"IsTrainingBlocked": function() { return false; }, | "IsTrainingBlocked": function() { return false; }, | ||||
"GetState": function() { return "active"; }, | "GetState": function() { return "active"; }, | ||||
"GetTeam": function() { return -1; }, | "GetTeam": function() { return -1; }, | ||||
"GetLockTeams": function() {return false; }, | "GetLockTeams": function() {return false; }, | ||||
"GetCheatsEnabled": function() { return false; }, | "GetCheatsEnabled": function() { return false; }, | ||||
"GetDiplomacy": function() { return [-1, 1]; }, | "GetDiplomacy": function() { return [-1, 1]; }, | ||||
"IsAlly": function() { return true; }, | "IsAlly": function() { return true; }, | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | "players": [ | ||||
"civ": "gaia", | "civ": "gaia", | ||||
"color": { "r": 1, "g": 1, "b": 1, "a": 1 }, | "color": { "r": 1, "g": 1, "b": 1, "a": 1 }, | ||||
"controlsAll": false, | "controlsAll": false, | ||||
"popCount": 10, | "popCount": 10, | ||||
"popLimit": 20, | "popLimit": 20, | ||||
"popMax": 200, | "popMax": 200, | ||||
"panelEntities": [], | "panelEntities": [], | ||||
"resourceCounts": { "food": 100 }, | "resourceCounts": { "food": 100 }, | ||||
"resourceGatherers": { "food": 1 }, | |||||
"trainingBlocked": false, | "trainingBlocked": false, | ||||
"state": "active", | "state": "active", | ||||
"team": -1, | "team": -1, | ||||
"teamsLocked": false, | "teamsLocked": false, | ||||
"cheatsEnabled": false, | "cheatsEnabled": false, | ||||
"disabledTemplates": {}, | "disabledTemplates": {}, | ||||
"disabledTechnologies": {}, | "disabledTechnologies": {}, | ||||
"hasSharedDropsites": false, | "hasSharedDropsites": false, | ||||
Show All 33 Lines | "players": [ | ||||
"civ": "mace", | "civ": "mace", | ||||
"color": { "r": 1, "g": 0, "b": 0, "a": 1 }, | "color": { "r": 1, "g": 0, "b": 0, "a": 1 }, | ||||
"controlsAll": true, | "controlsAll": true, | ||||
"popCount": 40, | "popCount": 40, | ||||
"popLimit": 30, | "popLimit": 30, | ||||
"popMax": 300, | "popMax": 300, | ||||
"panelEntities": [], | "panelEntities": [], | ||||
"resourceCounts": { "food": 200 }, | "resourceCounts": { "food": 200 }, | ||||
"resourceGatherers": { "food": 3 }, | |||||
"trainingBlocked": false, | "trainingBlocked": false, | ||||
"state": "active", | "state": "active", | ||||
"team": -1, | "team": -1, | ||||
"teamsLocked": false, | "teamsLocked": false, | ||||
"cheatsEnabled": false, | "cheatsEnabled": false, | ||||
"disabledTemplates": {}, | "disabledTemplates": {}, | ||||
"disabledTechnologies": {}, | "disabledTechnologies": {}, | ||||
"hasSharedDropsites": false, | "hasSharedDropsites": false, | ||||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | "players": [ | ||||
"civ": "gaia", | "civ": "gaia", | ||||
"color": { "r": 1, "g": 1, "b": 1, "a": 1 }, | "color": { "r": 1, "g": 1, "b": 1, "a": 1 }, | ||||
"controlsAll": false, | "controlsAll": false, | ||||
"popCount": 10, | "popCount": 10, | ||||
"popLimit": 20, | "popLimit": 20, | ||||
"popMax": 200, | "popMax": 200, | ||||
"panelEntities": [], | "panelEntities": [], | ||||
"resourceCounts": { "food": 100 }, | "resourceCounts": { "food": 100 }, | ||||
"resourceGatherers": { "food": 1 }, | |||||
"trainingBlocked": false, | "trainingBlocked": false, | ||||
"state": "active", | "state": "active", | ||||
"team": -1, | "team": -1, | ||||
"teamsLocked": false, | "teamsLocked": false, | ||||
"cheatsEnabled": false, | "cheatsEnabled": false, | ||||
"disabledTemplates": {}, | "disabledTemplates": {}, | ||||
"disabledTechnologies": {}, | "disabledTechnologies": {}, | ||||
"hasSharedDropsites": false, | "hasSharedDropsites": false, | ||||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | "players": [ | ||||
"civ": "mace", | "civ": "mace", | ||||
"color": { "r": 1, "g": 0, "b": 0, "a": 1 }, | "color": { "r": 1, "g": 0, "b": 0, "a": 1 }, | ||||
"controlsAll": true, | "controlsAll": true, | ||||
"popCount": 40, | "popCount": 40, | ||||
"popLimit": 30, | "popLimit": 30, | ||||
"popMax": 300, | "popMax": 300, | ||||
"panelEntities": [], | "panelEntities": [], | ||||
"resourceCounts": { "food": 200 }, | "resourceCounts": { "food": 200 }, | ||||
"resourceGatherers": { "food": 3 }, | |||||
"trainingBlocked": false, | "trainingBlocked": false, | ||||
"state": "active", | "state": "active", | ||||
"team": -1, | "team": -1, | ||||
"teamsLocked": false, | "teamsLocked": false, | ||||
"cheatsEnabled": false, | "cheatsEnabled": false, | ||||
"disabledTemplates": {}, | "disabledTemplates": {}, | ||||
"disabledTechnologies": {}, | "disabledTechnologies": {}, | ||||
"hasSharedDropsites": false, | "hasSharedDropsites": false, | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator