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

key string
value float
text string

Fields

Key

public string Key

Field Value

string

Text

public string Text

Field Value

string

Value

public float Value

Field Value

float

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

parameters List<BehaviourParameter>
key string
fallback float

Returns

float

GetText(List<BehaviourParameter>, string, string)

public static string GetText(List<BehaviourParameter> parameters, string key, string fallback = "")

Parameters

parameters List<BehaviourParameter>
key string
fallback string

Returns

string