Exemplo n.º 1
0
 public void Update(float deltaTime)
 {
     if (!IsStarted)
     {
         return;
     }
     for (int i = 0; i < pendingGoals.Count;)
     {
         var goal = pendingGoals[i];
         goal.Update(deltaTime);
         if (!goal.IsCompleted)
         {
             ++i;
         }
         else
         {
             completedGoals.Add(goal);
             pendingGoals.RemoveAt(i);
             if (GameMain.Server != null)
             {
                 Traitor.SendChatMessage(goal.CompletedText(Traitor), Traitor.Mission?.Identifier);
                 if (pendingGoals.Count > 0)
                 {
                     Traitor.SendChatMessageBox(goal.CompletedText(Traitor), Traitor.Mission?.Identifier);
                 }
                 Traitor.UpdateCurrentObjective(GoalInfos, Traitor.Mission?.Identifier);
             }
         }
     }
 }
Exemplo n.º 2
0
 public void EndMessage()
 {
     Traitor.SendChatMessageBox(EndMessageText, Traitor.Mission?.Identifier);
     Traitor.SendChatMessage(EndMessageText, Traitor.Mission?.Identifier);
 }
Exemplo n.º 3
0
 public void EndMessage()
 {
     Traitor.SendChatMessage(EndMessageText);
 }
Exemplo n.º 4
0
 public void StartMessage()
 {
     Traitor.SendChatMessage(StartMessageText, Traitor.Mission?.Identifier);
 }
Exemplo n.º 5
0
 public void StartMessage()
 {
     Traitor.SendChatMessage(StartMessageText);
 }