Nano Brain for Unity v0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ClusterPrefab Class Reference

Description

The Unity ScriptableObject to implement re-usable Cluster Prefabs.

Inherits ScriptableObject.

Public Member Functions

Nucleus GetNucleus (string nucleusName)
 Retrieve a nucleus in this cluster.
 
void EnsureInitialization ()
 Call this function to ensure that there is at least one nucleus.
 

Public Attributes

Cluster cluster
 The cluster data.
 

Member Function Documentation

◆ GetNucleus()

Nucleus GetNucleus ( string  nucleusName)

Retrieve a nucleus in this cluster.

Parameters
nucleusNameThe name of the nucleus
Returns
The Nucleus with the given name or null if no such Nucleus could be found

◆ EnsureInitialization()

void EnsureInitialization ( )

Call this function to ensure that there is at least one nucleus.

his is an invariant and should be ensured before the nucleus is used because output requires it.