Struct BehaviourParameter
- Namespace
- SurvivorsMaker.Simulation
- Assembly
- SurvivorsMaker.Simulation.dll
A named number or text a custom behaviour reads from its definition.
public struct BehaviourParameter
- Inherited Members
Constructors
BehaviourParameter(string, float, string)
public BehaviourParameter(string key, float value, string text = "")
Parameters
Fields
Key
public string Key
Field Value
Text
public string Text
Field Value
Value
public float Value
Field Value
Methods
Get(List<BehaviourParameter>, string, float)
The value of key in parameters, or fallback.
public static float Get(List<BehaviourParameter> parameters, string key, float fallback = 0)
Parameters
parametersList<BehaviourParameter>keystringfallbackfloat
Returns
GetText(List<BehaviourParameter>, string, string)
public static string GetText(List<BehaviourParameter> parameters, string key, string fallback = "")
Parameters
parametersList<BehaviourParameter>keystringfallbackstring