См. определение в файле ActionTurnOnPowerGenerator.c строка 9
10 {
11 PowerGeneratorBase pg = PowerGeneratorBase.Cast(target.GetObject());
12
13 if (pg)
14 {
15 if (pg.HasEnergyManager() && pg.GetCompEM().CanSwitchOn() && pg.HasSparkplug() && pg.GetCompEM().CanWork())
16 {
17 return true;
18 }
19 }
20
21 return false;
22 }
Перекрестные ссылки ActionTarget.