Example #1
0
    public void CancelJob()
    {
        if (OnJobStopped != null)
        {
            OnJobStopped(this);
        }

        // If we are a building job let our tile know we are no longer pending
        if (buildablePrototype != null)
        {
            // If we are a furniture building job, Let our workspot tile know it is no longer reserved for us.
            if (buildablePrototype.GetType() == typeof(Furniture))
            {
                World.Current.UnreserveTileAsWorkSpot((Furniture)buildablePrototype, tile);
            }
        }

        // Remove the job out of job queue.
        World.Current.jobManager.Remove(this);
    }
Example #2
0
 public BldgConstructionDef(IBuildable proto) : base(
         "BB:Construction",
         proto.GetType().Name + "Construct",
         "Construction: " + proto.buildingDef.name)
     => this.proto = proto;