Space Engineers
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Sandbox.Game.MyStatLogic Class Reference
Inheritance diagram for Sandbox.Game.MyStatLogic:
SpaceStatEffect.MySpaceStatEffect

Classes

struct  MyStatAction
 
struct  MyStatEfficiencyModifier
 
struct  MyStatRegenModifier
 

Public Member Functions

virtual void Init (IMyCharacter character, Dictionary< MyStringHash, MyEntityStat > stats, string scriptName)
 
virtual void Update ()
 
virtual void Update10 ()
 
virtual void Close ()
 
void AddAction (string actionId, MyStatAction action)
 
void AddModifier (string modifierId, MyStatRegenModifier modifier)
 
void AddEfficiency (string modifierId, MyStatEfficiencyModifier modifier)
 
bool CanDoAction (string actionId, bool continuous, out MyTuple< ushort, MyStringHash > message)
 
bool DoAction (string actionId)
 
void ApplyModifier (string modifierId)
 
float GetEfficiencyModifier (string modifierId)
 

Public Attributes

const int STAT_VALUE_TOO_LOW = 4
 

Protected Member Functions

virtual void OnCharacterChanged (IMyCharacter oldCharacter)
 

Protected Attributes

Dictionary< MyStringHash, MyEntityStatm_stats
 

Properties

string Name [get]
 
IMyCharacter Character [get, set]
 
bool EnableAutoHealing [get]
 
Dictionary< string, MyStatActionStatActions [get]
 
Dictionary< string, MyStatRegenModifierStatRegenModifiers [get]
 
Dictionary< string, MyStatEfficiencyModifierStatEfficiencyModifiers [get]
 

Detailed Description

Definition at line 30 of file MyStatLogic.cs.

Member Function Documentation

void Sandbox.Game.MyStatLogic.AddAction ( string  actionId,
MyStatAction  action 
)
inline

Definition at line 116 of file MyStatLogic.cs.

void Sandbox.Game.MyStatLogic.AddEfficiency ( string  modifierId,
MyStatEfficiencyModifier  modifier 
)
inline

Definition at line 126 of file MyStatLogic.cs.

void Sandbox.Game.MyStatLogic.AddModifier ( string  modifierId,
MyStatRegenModifier  modifier 
)
inline

Definition at line 121 of file MyStatLogic.cs.

void Sandbox.Game.MyStatLogic.ApplyModifier ( string  modifierId)
inline

Definition at line 197 of file MyStatLogic.cs.

bool Sandbox.Game.MyStatLogic.CanDoAction ( string  actionId,
bool  continuous,
out MyTuple< ushort, MyStringHash message 
)
inline

Definition at line 131 of file MyStatLogic.cs.

virtual void Sandbox.Game.MyStatLogic.Close ( )
inlinevirtual

Reimplemented in SpaceStatEffect.MySpaceStatEffect.

Definition at line 113 of file MyStatLogic.cs.

bool Sandbox.Game.MyStatLogic.DoAction ( string  actionId)
inline

Definition at line 175 of file MyStatLogic.cs.

float Sandbox.Game.MyStatLogic.GetEfficiencyModifier ( string  modifierId)
inline

Definition at line 214 of file MyStatLogic.cs.

virtual void Sandbox.Game.MyStatLogic.Init ( IMyCharacter  character,
Dictionary< MyStringHash, MyEntityStat stats,
string  scriptName 
)
inlinevirtual

Reimplemented in SpaceStatEffect.MySpaceStatEffect.

Definition at line 96 of file MyStatLogic.cs.

virtual void Sandbox.Game.MyStatLogic.OnCharacterChanged ( IMyCharacter  oldCharacter)
inlineprotectedvirtual

Definition at line 114 of file MyStatLogic.cs.

virtual void Sandbox.Game.MyStatLogic.Update ( )
inlinevirtual

Definition at line 110 of file MyStatLogic.cs.

virtual void Sandbox.Game.MyStatLogic.Update10 ( )
inlinevirtual

Definition at line 111 of file MyStatLogic.cs.

Member Data Documentation

Dictionary<MyStringHash, MyEntityStat> Sandbox.Game.MyStatLogic.m_stats
protected

Definition at line 80 of file MyStatLogic.cs.

const int Sandbox.Game.MyStatLogic.STAT_VALUE_TOO_LOW = 4

Definition at line 94 of file MyStatLogic.cs.

Property Documentation

IMyCharacter Sandbox.Game.MyStatLogic.Character
getset

Definition at line 78 of file MyStatLogic.cs.

bool Sandbox.Game.MyStatLogic.EnableAutoHealing
getprotected

Definition at line 83 of file MyStatLogic.cs.

string Sandbox.Game.MyStatLogic.Name
get

Definition at line 75 of file MyStatLogic.cs.

Dictionary<string, MyStatAction> Sandbox.Game.MyStatLogic.StatActions
get

Definition at line 86 of file MyStatLogic.cs.

Dictionary<string, MyStatEfficiencyModifier> Sandbox.Game.MyStatLogic.StatEfficiencyModifiers
get

Definition at line 92 of file MyStatLogic.cs.

Dictionary<string, MyStatRegenModifier> Sandbox.Game.MyStatLogic.StatRegenModifiers
get

Definition at line 89 of file MyStatLogic.cs.


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