Style Slasher
A dressup combat roguelike created by Scrungle Studios for the 2025 Swinburne Capstone project.
Slasher.Entity.ParamModifier Class Reference
Inheritance diagram for Slasher.Entity.ParamModifier:
Inheritance graph
Collaboration diagram for Slasher.Entity.ParamModifier:
Collaboration graph

Public Member Functions

 ParamModifier (ParamID id, float delta=0, float multiplyDelta=0)
 
 ParamModifier (ParamID id, bool enabled)
 
Parameters
enabledLogic OR (all must be false for output to be false, if any of them are true, the final param will be true.)

 
- Public Member Functions inherited from Slasher.Entity.BaseParamValue
 BaseParamValue (ParamID id)
 
void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 
void OnChange ()
 

Properties

float Add [get, set]
 
float Multiply [get, set]
 The multiplicative offset value of this modifier.
 
- Properties inherited from Slasher.Entity.BaseParamValue
ParamID ID [get, set]
 

Private Attributes

float additive = 0
 
float multiplicative = 0
 

Additional Inherited Members

- Events inherited from Slasher.Entity.BaseParamValue
Action OnChanged = () => { }
 

Constructor & Destructor Documentation

◆ ParamModifier() [1/2]

Slasher.Entity.ParamModifier.ParamModifier ( ParamID id,
float delta = 0,
float multiplyDelta = 0 )

◆ ParamModifier() [2/2]

Slasher.Entity.ParamModifier.ParamModifier ( ParamID id,
bool enabled )

Parameters
enabledLogic OR (all must be false for output to be false, if any of them are true, the final param will be true.)

Member Data Documentation

◆ additive

float Slasher.Entity.ParamModifier.additive = 0
private

◆ multiplicative

float Slasher.Entity.ParamModifier.multiplicative = 0
private

Property Documentation

◆ Add

float Slasher.Entity.ParamModifier.Add
getsetadd

◆ Multiply

float Slasher.Entity.ParamModifier.Multiply
getset

The multiplicative offset value of this modifier.

These values will ultimately be summed and added to 1 so it can be mulitplied. Default is 0.


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