Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PowerGeneratorStatic Class Reference
Inheritance diagram for PowerGeneratorStatic:

Protected Member Functions

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

Static Protected Member Functions

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

Protected Attributes

int m_LeverStatesBits
Land_WarheadStorage_PowerStation m_Parent
int m_ParentID1
int m_ParentID2
int m_ParentID3
int m_ParentID4

Static Protected Attributes

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

Private Attributes

const int LOW_ENERGY_PERCENT = 5
const int SWITCH_COUNT = 6

Detailed Description

Definition at line 1 of file powergeneratorstatic.c.

Constructor & Destructor Documentation

◆ PowerGeneratorStatic()

◆ ~PowerGeneratorStatic()

void ~PowerGeneratorStatic ( )
inlineprotected

Definition at line 21 of file powergeneratorstatic.c.

References UnregisterPersistentObject().

Member Function Documentation

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprotected

Definition at line 143 of file powergeneratorstatic.c.

◆ CanPutIntoHands()

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected

Definition at line 149 of file powergeneratorstatic.c.

◆ CanReleaseAttachment()

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected

Definition at line 212 of file powergeneratorstatic.c.

◆ DisableVicinityIcon()

override bool DisableVicinityIcon ( )
inlineprotected

Definition at line 229 of file powergeneratorstatic.c.

◆ EEOnAfterLoad()

override void EEOnAfterLoad ( )
inlineprotected

◆ GetClosestGenerator()

PowerGeneratorStatic GetClosestGenerator ( vector position,
float tolerance )
inlinestaticprotected

◆ GetSmokeParticleOrientation()

override vector GetSmokeParticleOrientation ( )
inlineprotected

Definition at line 128 of file powergeneratorstatic.c.

◆ GetSmokeParticlePosition()

override vector GetSmokeParticlePosition ( )
inlineprotected

Definition at line 123 of file powergeneratorstatic.c.

◆ GetStoredLeverBits()

int GetStoredLeverBits ( )
inlineprotected

Definition at line 70 of file powergeneratorstatic.c.

References m_LeverStatesBits.

◆ HasSparkplug()

override bool HasSparkplug ( )
inlineprotected

Definition at line 134 of file powergeneratorstatic.c.

References InventorySlots::GetSlotIdFromString().

◆ IsActionTargetVisible()

override bool IsActionTargetVisible ( )
inlineprotected

Definition at line 224 of file powergeneratorstatic.c.

◆ IsTakeable()

override bool IsTakeable ( )
inlineprotected

Definition at line 219 of file powergeneratorstatic.c.

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

◆ OnWorkStart()

override void OnWorkStart ( )
inlineprotected

Definition at line 76 of file powergeneratorstatic.c.

References g_Game, m_Parent, and SWITCH_COUNT.

◆ OnWorkStop()

override void OnWorkStop ( )
inlineprotected

Definition at line 94 of file powergeneratorstatic.c.

References g_Game, m_Parent, and SWITCH_COUNT.

◆ RegisterPersistentObject()

void RegisterPersistentObject ( PowerGeneratorStatic obj)
inlinestaticprotected

Definition at line 26 of file powergeneratorstatic.c.

References PowerGeneratorStatic(), and m_PowerGenerators.

Referenced by PowerGeneratorStatic().

◆ SetLowEnergyState()

override void SetLowEnergyState ( bool state)
inlineprotected

◆ SetLowEnergyStateServer()

void SetLowEnergyStateServer ( bool state)
protected

◆ SetParent()

void SetParent ( Land_WarheadStorage_PowerStation parent)
inlineprotected

Definition at line 59 of file powergeneratorstatic.c.

References m_Parent.

◆ StoreLeverStates()

void StoreLeverStates ( int leverStateBits)
inlineprotected

Definition at line 65 of file powergeneratorstatic.c.

References m_LeverStatesBits.

◆ UnregisterPersistentObject()

void UnregisterPersistentObject ( PowerGeneratorStatic obj)
inlinestaticprotected

Definition at line 31 of file powergeneratorstatic.c.

References PowerGeneratorStatic(), and m_PowerGenerators.

Referenced by ~PowerGeneratorStatic().

Field Documentation

◆ LOW_ENERGY_PERCENT

const int LOW_ENERGY_PERCENT = 5
private

Definition at line 4 of file powergeneratorstatic.c.

◆ m_LeverStatesBits

int m_LeverStatesBits
protected

◆ m_Parent

◆ m_ParentID1

int m_ParentID1
protected

Definition at line 9 of file powergeneratorstatic.c.

Referenced by EEOnAfterLoad(), OnStoreLoad(), and OnStoreSave().

◆ m_ParentID2

int m_ParentID2
protected

Definition at line 10 of file powergeneratorstatic.c.

Referenced by EEOnAfterLoad(), OnStoreLoad(), and OnStoreSave().

◆ m_ParentID3

int m_ParentID3
protected

Definition at line 11 of file powergeneratorstatic.c.

Referenced by EEOnAfterLoad(), OnStoreLoad(), and OnStoreSave().

◆ m_ParentID4

int m_ParentID4
protected

Definition at line 12 of file powergeneratorstatic.c.

Referenced by EEOnAfterLoad(), OnStoreLoad(), and OnStoreSave().

◆ m_PowerGenerators

ref set<PowerGeneratorStatic> m_PowerGenerators = new set<PowerGeneratorStatic>()
staticprotected

◆ SWITCH_COUNT

const int SWITCH_COUNT = 6
private

Definition at line 3 of file powergeneratorstatic.c.

Referenced by OnWorkStart(), and OnWorkStop().


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