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

Description

Class to manage an array of nuclei for an IReceptor.

Would love to get rid of this class.

Public Member Functions

 NucleusArray (Nucleus nucleus)
 Create a new NucleusArray with the given nucleus.
 
 NucleusArray (int size)
 Create a new NucleusArray of the given size.
 
virtual void ProcessStimulus (int thingId, Vector3 inputValue, string thingName=null)
 Process an external stimulus.
 

Public Attributes

Dictionary< int, NucleusthingReceivers = new()
 

Properties

Nucleus[] nuclei [get, set]
 

Constructor & Destructor Documentation

◆ NucleusArray() [1/2]

NanoBrain.NucleusArray.NucleusArray ( Nucleus  nucleus)

Create a new NucleusArray with the given nucleus.

Parameters
nucleusThe Nucleus to put in the NucleusArray

This results in an nucleus array of size 1

◆ NucleusArray() [2/2]

NanoBrain.NucleusArray.NucleusArray ( int  size)

Create a new NucleusArray of the given size.

Parameters
sizeThe size of the nucluesArray

Member Function Documentation

◆ ProcessStimulus()

virtual void NanoBrain.NucleusArray.ProcessStimulus ( int  thingId,
Vector3  inputValue,
string  thingName = null 
)
virtual

Process an external stimulus.

Parameters
inputValueThe value of the stimulus
thingIdThe id of the thing causing the stimulus
thingNameThe name of the thing causing the stimulus

The documentation for this class was generated from the following file: