PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
PowerGeneratorStatic Class Reference

Private Member Functions

void PowerGeneratorStatic ()
 
void ~PowerGeneratorStatic ()
 
void SetParent (Land_WarheadStorage_PowerStation parent)
 
void StoreLeverStates (int leverStateBits)
 
int GetStoredLeverBits ()
 
override void OnWorkStart ()
 
override void OnWorkStop ()
 
override void SetLowEnergyState (bool state)
 
override vector GetSmokeParticlePosition ()
 
override vector GetSmokeParticleOrientation ()
 
override bool HasSparkplug ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI parent)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void EEOnAfterLoad ()
 
override bool CanReleaseAttachment (EntityAI attachment)
 
override bool IsTakeable ()
 
override bool IsActionTargetVisible ()
 
override bool DisableVicinityIcon ()
 
void SetLowEnergyStateServer (bool state)
 

Static Private Member Functions

static void RegisterPersistentObject (PowerGeneratorStatic obj)
 
static void UnregisterPersistentObject (PowerGeneratorStatic obj)
 
static PowerGeneratorStatic GetClosestGenerator (vector position, float tolerance)
 

Private Attributes

const int SWITCH_COUNT = 6
 
const int LOW_ENERGY_PERCENT = 5
 
protected Land_WarheadStorage_PowerStation m_Parent
 
protected int m_ParentID1
 
protected int m_ParentID2
 
protected int m_ParentID3
 
protected int m_ParentID4
 
protected int m_LeverStatesBits
 

Static Private Attributes

static protected ref set< PowerGeneratorStaticm_PowerGenerators = new set<PowerGeneratorStatic>()
 

Constructor & Destructor Documentation

◆ PowerGeneratorStatic()

void PowerGeneratorStatic ( )
inlineprivate

◆ ~PowerGeneratorStatic()

void ~PowerGeneratorStatic ( )
inlineprivate

Member Function Documentation

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI  parent)
inlineprivate

◆ CanPutIntoHands()

override bool CanPutIntoHands ( EntityAI  parent)
inlineprivate

◆ CanReleaseAttachment()

override bool CanReleaseAttachment ( EntityAI  attachment)
inlineprivate

◆ DisableVicinityIcon()

override bool DisableVicinityIcon ( )
inlineprivate

◆ EEOnAfterLoad()

override void EEOnAfterLoad ( )
inlineprivate

◆ GetClosestGenerator()

static PowerGeneratorStatic GetClosestGenerator ( vector  position,
float  tolerance 
)
inlinestaticprivate

◆ GetSmokeParticleOrientation()

override vector GetSmokeParticleOrientation ( )
inlineprivate

◆ GetSmokeParticlePosition()

override vector GetSmokeParticlePosition ( )
inlineprivate

◆ GetStoredLeverBits()

int GetStoredLeverBits ( )
inlineprivate

◆ HasSparkplug()

override bool HasSparkplug ( )
inlineprivate

◆ IsActionTargetVisible()

override bool IsActionTargetVisible ( )
inlineprivate

◆ IsTakeable()

override bool IsTakeable ( )
inlineprivate

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)
inlineprivate

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext  ctx)
inlineprivate

◆ OnWorkStart()

override void OnWorkStart ( )
inlineprivate

◆ OnWorkStop()

override void OnWorkStop ( )
inlineprivate

◆ RegisterPersistentObject()

static void RegisterPersistentObject ( PowerGeneratorStatic  obj)
inlinestaticprivate

References m_PowerGenerators.

Referenced by PowerGeneratorStatic().

◆ SetLowEnergyState()

◆ SetLowEnergyStateServer()

void SetLowEnergyStateServer ( bool  state)
private

◆ SetParent()

void SetParent ( Land_WarheadStorage_PowerStation  parent)
inlineprivate

◆ StoreLeverStates()

void StoreLeverStates ( int  leverStateBits)
inlineprivate

◆ UnregisterPersistentObject()

static void UnregisterPersistentObject ( PowerGeneratorStatic  obj)
inlinestaticprivate

References m_PowerGenerators.

Referenced by ~PowerGeneratorStatic().

Field Documentation

◆ LOW_ENERGY_PERCENT

const int LOW_ENERGY_PERCENT = 5
private

◆ m_LeverStatesBits

protected int m_LeverStatesBits
private

◆ m_Parent

◆ m_ParentID1

protected int m_ParentID1
private

◆ m_ParentID2

protected int m_ParentID2
private

◆ m_ParentID3

protected int m_ParentID3
private

◆ m_ParentID4

protected int m_ParentID4
private

◆ m_PowerGenerators

protected ref set<PowerGeneratorStatic> m_PowerGenerators = new set<PowerGeneratorStatic>()
staticprivate

◆ SWITCH_COUNT

const int SWITCH_COUNT = 6
private

Referenced by OnWorkStart(), and OnWorkStop().


The documentation for this class was generated from the following file: