public static BuildingOperation NewLocalResearch(Building building, LocalResearch res) { return(new NewLocalResearch(building, res)); }
public static BuildingOperation NewModule(Building building, Unit unit, UnitModule mod) { return(new NewModule(building, unit, mod)); }
public static BuildingOperation NewUnit(Building building, Vector2 spawnPos) { return(new NewUnit(building, spawnPos)); }
public static BuildingOperation NewUpgrade(Building building, Unit unit, UnitUpgrade up) { return(new NewUpgrade(building, unit, (int)up)); }
protected BuildingOperation(int needDone, int type, ResourceTotality resourceConsumation, int energyConsumation, Building building) { Done = 0; NeedDone = needDone; Type = (BuildingOperationType)type; ResourceConsumation = resourceConsumation; EnergyConsumation = energyConsumation; this.building = building; }