public void Initialize(AlchemicalComponentType alchemicalComponentType, AlchemicalComponentTemperatureState temperature = AlchemicalComponentTemperatureState.Cold) { if (isInitialize) { return; } spriteRenderer.color = AlchemicalComponentColorDictionary.dictionary[alchemicalComponentType]; alchemicalComponentParams = new AlchemicalComponentParams(alchemicalComponentType, temperature); isInitialize = true; }
public Builder Add(AlchemicalComponentParams alchemicalComponent) { if (counter != maxRecipeSize) { alchemicalComponents.Add(alchemicalComponent); } else { throw new ArgumentException("Maximum recipe size exceeded"); } counter++; return(this); }
public bool Equals(AlchemicalComponentParams alchemicalComponent) { if (Object.ReferenceEquals(alchemicalComponent, null)) { return(false); } if (Object.ReferenceEquals(this, alchemicalComponent)) { return(true); } if (this.GetType() != alchemicalComponent.GetType()) { return(false); } return((alchemicalComponent.temperature.state == temperature.state) && (alchemicalComponent.alchemicalComponentType == alchemicalComponentType)); }
public void AddComponent(AlchemicalComponentParams alchemicalComponent) { _alchemicalComponents.Add(alchemicalComponent); }