Definition at line 1 of file ActionTurnOnPowerGenerator.c.
◆ ActionTurnOnPowerGenerator()
void ActionTurnOnPowerGenerator::ActionTurnOnPowerGenerator |
( |
| ) |
|
|
inlineprivate |
◆ ActionCondition()
Definition at line 9 of file ActionTurnOnPowerGenerator.c.
10 {
11 PowerGeneratorBase
pg = PowerGeneratorBase.Cast(
target.GetObject());
12
14 {
15 if (
pg.HasEnergyManager() &&
pg.GetCompEM().CanSwitchOn() &&
pg.HasSparkplug() &&
pg.GetCompEM().CanWork())
16 return true;
17 }
18
19 return false;
20 }
◆ OnExecuteServer()
The documentation for this class was generated from the following file: