コード例 #1
0
ファイル: MacroTask.cs プロジェクト: vbergaaa/vBergaaaBot
 /// <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();
     }
 }
コード例 #2
0
ファイル: MacroTask.cs プロジェクト: vbergaaa/vBergaaaBot
 // 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();
     }
 }