Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/GuiInterface.js
Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | if (cmpProductionQueue) | ||||
ret.production = { | ret.production = { | ||||
"queue": cmpProductionQueue.GetQueue(), | "queue": cmpProductionQueue.GetQueue(), | ||||
"autoqueue": cmpProductionQueue.IsAutoQueueing() | "autoqueue": cmpProductionQueue.IsAutoQueueing() | ||||
}; | }; | ||||
const cmpTrainer = Engine.QueryInterface(ent, IID_Trainer); | const cmpTrainer = Engine.QueryInterface(ent, IID_Trainer); | ||||
if (cmpTrainer) | if (cmpTrainer) | ||||
ret.trainer = { | ret.trainer = { | ||||
"entities": cmpTrainer.GetEntitiesList() | "entities": cmpTrainer.GetEntitiesList(), | ||||
"trainCostMultiplier": cmpTrainer.GetTrainCostMultiplier() | |||||
}; | }; | ||||
let cmpTrader = Engine.QueryInterface(ent, IID_Trader); | let cmpTrader = Engine.QueryInterface(ent, IID_Trader); | ||||
if (cmpTrader) | if (cmpTrader) | ||||
ret.trader = { | ret.trader = { | ||||
"goods": cmpTrader.GetGoods() | "goods": cmpTrader.GetGoods() | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 1,788 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator