Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Protected Member Functions | List of all members
Strategies.Effects.CurrencyOperation Class Reference
Inheritance diagram for Strategies.Effects.CurrencyOperation:
Strategies.StrategyEffect

Public Types

enum  Operator { Operator.Add, Operator.Multiply, Operator.Set }
 

Public Member Functions

 CurrencyOperation (Strategy parent)
 
 CurrencyOperation (Strategy parent, float minValue, float maxValue, Currency currency, Operator op, TransactionReasons AffectReasons, string description)
 
- Public Member Functions inherited from Strategies.StrategyEffect
virtual bool CanActivate (ref string reason)
 
void Load (ConfigNode node)
 
void LoadFromConfig (ConfigNode node)
 
void Register ()
 If active, registers itself in GameEvents.Buffs More...
 
void Save (ConfigNode node)
 
 StrategyEffect (Strategy parent)
 
void Unregister ()
 Removes itself from all events More...
 
void Update ()
 Called once per frame when strategy is active More...
 

Protected Member Functions

override string GetDescription ()
 Description of this effect as set by designer of the GameBuffEffect Can be overridden by the parent GameBuff if required More...
 
virtual void OnEffectQuery (CurrencyModifierQuery qry)
 
override void OnLoadFromConfig (ConfigNode node)
 
override void OnRegister ()
 
override void OnUnregister ()
 
- Protected Member Functions inherited from Strategies.StrategyEffect
virtual void OnLoad (ConfigNode node)
 
virtual void OnSave (ConfigNode node)
 
virtual void OnUpdate ()
 
float ParentLerp (float minValue, float maxValue)
 
string ToPercentage (float percentage, string format="F0")
 

Additional Inherited Members

- Properties inherited from Strategies.StrategyEffect
string Description [get]
 
Strategy Parent [get]
 Parent Strategy that this effect is attached to More...
 

Member Enumeration Documentation

Enumerator
Add 
Multiply 
Set 

Constructor & Destructor Documentation

Strategies.Effects.CurrencyOperation.CurrencyOperation ( Strategy  parent)
inline
Strategies.Effects.CurrencyOperation.CurrencyOperation ( Strategy  parent,
float  minValue,
float  maxValue,
Currency  currency,
Operator  op,
TransactionReasons  AffectReasons,
string  description 
)
inline

Member Function Documentation

override string Strategies.Effects.CurrencyOperation.GetDescription ( )
inlineprotectedvirtual

Description of this effect as set by designer of the GameBuffEffect Can be overridden by the parent GameBuff if required

Reimplemented from Strategies.StrategyEffect.

virtual void Strategies.Effects.CurrencyOperation.OnEffectQuery ( CurrencyModifierQuery  qry)
inlineprotectedvirtual
override void Strategies.Effects.CurrencyOperation.OnLoadFromConfig ( ConfigNode  node)
inlineprotectedvirtual

Reimplemented from Strategies.StrategyEffect.

override void Strategies.Effects.CurrencyOperation.OnRegister ( )
inlineprotectedvirtual

Reimplemented from Strategies.StrategyEffect.

override void Strategies.Effects.CurrencyOperation.OnUnregister ( )
inlineprotectedvirtual

Reimplemented from Strategies.StrategyEffect.


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