public string GetAssetNameForStructureType(StructureDefinition.StructureType type)
 {
     return(GetDefinitionForType(type).Asset);
 }
Ejemplo n.º 2
0
 public void SpawnPreviewModel(StructureDefinition.StructureType type, Vector3 position, bool valid, SpawnCallback callback)
 {
     SpawnPreviewModel(_structureDefinitionManager.GetAssetNameForStructureType(type), position, valid, callback);
 }
 public IPlacementResult CanPlace(Coord coord, StructureDefinition.StructureType type)
 {
     return(GetDefinitionForType(type).CanPlace(coord));
 }
Ejemplo n.º 4
0
 public void RecyleItem(StructureDefinition.StructureType type, GameObject gameObject)
 {
     RecyleItem(type.ToString(), gameObject);
 }