public void GetNeuralValue(MetaNeuron data, Neuron neuron) { if (moduleID != data.moduleID) { return; } neuron.currentValues = (float[])GetType().GetField(neuron.name).GetValue(this); }
/// Copy existing NeuronGenome public NeuronGenome(NeuronGenome original) { if (original == null) { Debug.LogError("Attempting to copy null NeuronGenome"); } data = original.data; index = original.index; }
/// 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; }
public bool ContainsNeuron(MetaNeuron id) { foreach (var neuron in unlocks) { if (neuron == id) { return(true); } } return(false); }
public void GetNeuralValue(MetaNeuron data, Neuron neuron) { }