Пример #1
0
 public void GetNeuralValue(MetaNeuron data, Neuron neuron)
 {
     if (moduleID != data.moduleID)
     {
         return;
     }
     neuron.currentValues = (float[])GetType().GetField(neuron.name).GetValue(this);
 }
Пример #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;
    }
Пример #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;
    }
Пример #4
0
    public bool ContainsNeuron(MetaNeuron id)
    {
        foreach (var neuron in unlocks)
        {
            if (neuron == id)
            {
                return(true);
            }
        }

        return(false);
    }
Пример #5
0
 public void GetNeuralValue(MetaNeuron data, Neuron neuron)
 {
 }