Beispiel #1
0
 /// <summary>
 /// Calling this method attempts to add a task to research the desired upgrade to the task manager
 /// </summary>
 /// <param name="upgradeId">upgrade type to research</param>a
 public static void ResearchUpgrade(int upgradeId)
 {
     if (Controller.CanMakeUpgrade(upgradeId))
     {
         Task t = new MacroTask(upgradeId);
         t.Commit();
     }
 }
Beispiel #2
0
 // Activators
 /// <summary>
 /// Calling this method attempts to add a task to build the desired unit to the task manager
 /// </summary>
 /// <param name="unitId">unit type of desired unit</param>
 public static void MakeUnit(uint unitId)
 {
     if (Controller.CanMakeUnit(unitId))
     {
         Task t = new MacroTask(unitId);
         t.Commit();
     }
 }