|
delegate void | StatChangedDelegate (float newValue, float oldValue, object statChangeData) |
|
virtual void | Init (MyObjectBuilder_Base objectBuilder) |
|
virtual MyObjectBuilder_EntityStat | GetObjectBuilder () |
|
void | ApplyRegenAmountMultiplier (float amountMultiplier=1.0f, float duration=2.0f) |
|
void | ResetRegenAmountMultiplier () |
|
float | GetEfficiencyMultiplier (float multiplier, float threshold) |
|
int | AddEffect (float amount, float interval, float duration=-1.0f, float minRegenRatio=0.0f, float maxRegenRatio=1.0f) |
|
int | AddEffect (MyObjectBuilder_EntityStatRegenEffect objectBuilder) |
|
virtual void | Update () |
|
bool | RemoveEffect (int id) |
|
void | ClearEffects () |
|
bool | TryGetEffect (int id, out MyEntityStatRegenEffect outEffect) |
|
DictionaryReader< int, MyEntityStatRegenEffect > | GetEffects () |
|
MyEntityStatRegenEffect | GetEffect (int id) |
|
override string | ToString () |
|
void | Increase (float amount, object statChangeData) |
|
void | Decrease (float amount, object statChangeData) |
|
float | CalculateRegenLeftForLongestEffect () |
|
Definition at line 17 of file MyEntityStat.cs.
int Sandbox.Game.Entities.MyEntityStat.AddEffect |
( |
float |
amount, |
|
|
float |
interval, |
|
|
float |
duration = -1.0f , |
|
|
float |
minRegenRatio = 0.0f , |
|
|
float |
maxRegenRatio = 1.0f |
|
) |
| |
|
inline |
void Sandbox.Game.Entities.MyEntityStat.ApplyRegenAmountMultiplier |
( |
float |
amountMultiplier = 1.0f , |
|
|
float |
duration = 2.0f |
|
) |
| |
|
inline |
float Sandbox.Game.Entities.MyEntityStat.CalculateRegenLeftForLongestEffect |
( |
| ) |
|
|
inline |
void Sandbox.Game.Entities.MyEntityStat.ClearEffects |
( |
| ) |
|
|
inline |
void Sandbox.Game.Entities.MyEntityStat.Decrease |
( |
float |
amount, |
|
|
object |
statChangeData |
|
) |
| |
|
inline |
float Sandbox.Game.Entities.MyEntityStat.GetEfficiencyMultiplier |
( |
float |
multiplier, |
|
|
float |
threshold |
|
) |
| |
|
inline |
void Sandbox.Game.Entities.MyEntityStat.Increase |
( |
float |
amount, |
|
|
object |
statChangeData |
|
) |
| |
|
inline |
bool Sandbox.Game.Entities.MyEntityStat.RemoveEffect |
( |
int |
id | ) |
|
|
inline |
void Sandbox.Game.Entities.MyEntityStat.ResetRegenAmountMultiplier |
( |
| ) |
|
|
inline |
delegate void Sandbox.Game.Entities.MyEntityStat.StatChangedDelegate |
( |
float |
newValue, |
|
|
float |
oldValue, |
|
|
object |
statChangeData |
|
) |
| |
override string Sandbox.Game.Entities.MyEntityStat.ToString |
( |
| ) |
|
|
inline |
virtual void Sandbox.Game.Entities.MyEntityStat.Update |
( |
| ) |
|
|
inlinevirtual |
float Sandbox.Game.Entities.MyEntityStat.m_currentValue |
|
protected |
float Sandbox.Game.Entities.MyEntityStat.m_defaultValue |
|
protected |
float Sandbox.Game.Entities.MyEntityStat.m_maxValue |
|
protected |
float Sandbox.Game.Entities.MyEntityStat.m_minValue |
|
protected |
float Sandbox.Game.Entities.MyEntityStat.CurrentRatio |
|
get |
float Sandbox.Game.Entities.MyEntityStat.DefaultValue |
|
get |
float Sandbox.Game.Entities.MyEntityStat.MaxValue |
|
get |
float Sandbox.Game.Entities.MyEntityStat.MinValue |
|
get |
bool Sandbox.Game.Entities.MyEntityStat.ShouldSync |
|
get |
float Sandbox.Game.Entities.MyEntityStat.StatRegenLeft |
|
getset |
float Sandbox.Game.Entities.MyEntityStat.Value |
|
getset |
The documentation for this class was generated from the following file: