Simulation.DatabaseAsset Class Reference

Stores the data used by the NEEDSIM Life simulation More...

Inherits ScriptableObject.

Public Member Functions

void Init (string databaseName, List< NeedItem > needs, List< Species > species, List< InteractionData > interactions, bool isDefaultDatabase)
 Initializes the database asset with values More...
 
string[] GetNeedNames ()
 Constructs a new array with the names of all needs. More...
 
string[] GetSpeciesNames ()
 Constructs a new array with the names of all species. More...
 
string[] GetInteractionNames ()
 Constructs a new array with the names of all interactions. More...
 

Public Attributes

string DatabaseName
 The name of the database More...
 
bool isDefault
 Whether this is the one default database. More...
 
List< NeedItemNeedsList
 All the needs in the database More...
 
List< SpeciesSpecies
 All the species in the database More...
 
List< InteractionDataInteractions
 All the interactions in the database. More...
 

Detailed Description

Stores the data used by the NEEDSIM Life simulation

Member Function Documentation

string [] Simulation.DatabaseAsset.GetInteractionNames ( )

Constructs a new array with the names of all interactions.

Returns
A new array with the name of all interactions.
string [] Simulation.DatabaseAsset.GetNeedNames ( )

Constructs a new array with the names of all needs.

Returns
A new array with the name of all needs.
string [] Simulation.DatabaseAsset.GetSpeciesNames ( )

Constructs a new array with the names of all species.

Returns
A new array with the name of all species.
void Simulation.DatabaseAsset.Init ( string  databaseName,
List< NeedItem needs,
List< Species species,
List< InteractionData interactions,
bool  isDefaultDatabase 
)

Initializes the database asset with values

Parameters
databaseNameThe name of the database
needsThe needs in the database
speciesThe species in the databse
interactionsThe interactions in the database
isDefaultDatabaseWhether this is the one default database.

Member Data Documentation

string Simulation.DatabaseAsset.DatabaseName

The name of the database

List<InteractionData> Simulation.DatabaseAsset.Interactions

All the interactions in the database.

bool Simulation.DatabaseAsset.isDefault

Whether this is the one default database.

List<NeedItem> Simulation.DatabaseAsset.NeedsList

All the needs in the database

List<Species> Simulation.DatabaseAsset.Species

All the species in the database


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