public ToolInfo(ThingWithComps tool, bool getInfo = true)
 {
     this.tool = tool;
     if (getInfo)
     {
         tool.IsTool(out comp, false);
     }
 }
Exemplo n.º 2
0
 public void SetForced(ThingWithComps tool, bool forced, bool checkIfTool = true)
 {
     if (checkIfTool && !tool.IsTool())
     {
         if (forcedTools.Contains(tool))
         {
             forcedTools.Remove(tool);
         }
         return;
     }
     if (forced && !forcedTools.Contains(tool))
     {
         forcedTools.Add(tool);
     }
     else if (!forced && forcedTools.Contains(tool))
     {
         forcedTools.Remove(tool);
     }
 }