public void GetNeuralValue(MetaNeuron data, Neuron neuron)
 {
     if (moduleID != data.moduleID)
     {
         return;
     }
     neuron.currentValues = (float[])GetType().GetField(neuron.name).GetValue(this);
 }
Exemple #2
0
    /// Copy existing NeuronGenome
    public NeuronGenome(NeuronGenome original)
    {
        if (original == null)
        {
            Debug.LogError("Attempting to copy null NeuronGenome");
        }

        data  = original.data;
        index = original.index;
    }
Exemple #3
0
    /// Create new NeuronGenome from static data
    public NeuronGenome(MetaNeuron data, int index)
    {
        if (!data)
        {
            Debug.LogError("Neuron genome created without data!");
        }
        //Debug.Log($"{data.name} {index}");

        this.data  = data;
        this.index = index;
    }
Exemple #4
0
    public bool ContainsNeuron(MetaNeuron id)
    {
        foreach (var neuron in unlocks)
        {
            if (neuron == id)
            {
                return(true);
            }
        }

        return(false);
    }
Exemple #5
0
 public void GetNeuralValue(MetaNeuron data, Neuron neuron)
 {
 }