Exemplo n.º 1
0
    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);
    }
Exemplo n.º 4
0
 public static void InstantiateCeiling(CeilingData prototype, CellData cell)
 {
     CeilingData.Instantiate(prototype, cell);
     PathGrid.Invalidate();
 }
Exemplo n.º 5
0
 private static void BuildCeilingPrototype(string id)
 {
     ceilingPrototypes.Add(id, CeilingData.Prototype(id));
 }