Simulation.InteractionData Class Reference

From these data items used in the editor the interactions for the runtime will be generated. More...

Public Member Functions

void Init (string name, List< StringFloatPair > satisfactionRates)
 Create the data for a new interaction. More...
 

Public Attributes

string interactionName
 The unique name of the need. Identifier. More...
 
List< StringFloatPairsatisfactions
 The rate at which each need is decayed or satisfied per second whilst the interaction is performed. More...
 
float duration
 The duration in seconds of the interaction. More...
 
bool doesHavePreconditions
 Whether this interaction has preconditions. Setting this to false can speed up the simulation at the cost of not evaluating preconditions. More...
 
List< string > SpeciesAllowed
 Which species are allowed to participate this interaction (precondition) More...
 
List< string > AtSatisfactionLevels
 NOT YET IMPLEMENTED More...
 

Detailed Description

From these data items used in the editor the interactions for the runtime will be generated.

Member Function Documentation

void Simulation.InteractionData.Init ( string  name,
List< StringFloatPair satisfactionRates 
)

Create the data for a new interaction.

Parameters
nameThe unique name of the need. Identifier.
satisfactionRatesThe rate at which the interaction satisfies or decays each need per second.

Member Data Documentation

List<string> Simulation.InteractionData.AtSatisfactionLevels

NOT YET IMPLEMENTED

bool Simulation.InteractionData.doesHavePreconditions

Whether this interaction has preconditions. Setting this to false can speed up the simulation at the cost of not evaluating preconditions.

float Simulation.InteractionData.duration

The duration in seconds of the interaction.

string Simulation.InteractionData.interactionName

The unique name of the need. Identifier.

List<StringFloatPair> Simulation.InteractionData.satisfactions

The rate at which each need is decayed or satisfied per second whilst the interaction is performed.

List<string> Simulation.InteractionData.SpeciesAllowed

Which species are allowed to participate this interaction (precondition)


The documentation for this class was generated from the following file:
  • InteractionData.cs