public StructureDefinition GetDefinitionForType(StructureDefinition.StructureType type) { var def = StructureDefinitions.FirstOrDefault(s => s.Type == type); if (def == null) { Debug.LogError($"Type not found {type}"); throw new KeyNotFoundException(type.ToString()); } return(def); }
public override string ToString() { return(_structureType.ToString().Substring(0, 1)); }
public void RecyleItem(StructureDefinition.StructureType type, GameObject gameObject) { RecyleItem(type.ToString(), gameObject); }