public void SetActiveCeiling(string prototype) { activeCeiling = GridData.GetCeilingPrototype(prototype); creationMode = CreationMode.Ceiling; UpdateToolInfo(activeCeiling.instructionSetID); }
public static CeilingData Prototype(string instructionSetID) { CeilingData newData = new CeilingData(); newData.instructionSetID = instructionSetID; return(newData); }
public static CeilingData Instantiate(CeilingData prototype, CellData cell) { if (prototype != null) { CeilingData newData = new CeilingData(); newData.instructionSetID = prototype.instructionSetID; newData.cellData = cell; cell.ceiling = newData; return(newData); } cell.ceiling = null; return(null); }
public static void InstantiateCeiling(CeilingData prototype, CellData cell) { CeilingData.Instantiate(prototype, cell); PathGrid.Invalidate(); }
private static void BuildCeilingPrototype(string id) { ceilingPrototypes.Add(id, CeilingData.Prototype(id)); }