public async Task ChangeStatusChildObjective(long childObjectiveid, ObjectiveStatus objectiveStatus)
 {
     await _childObjectiveRepository.UpdateStatus(childObjectiveid, objectiveStatus);
 }
 public async Task ChangeStatusMainObjective(long mainObjectiveId, ObjectiveStatus objectiveStatus)
 {
     await _mainObjectiveRepository.UpdateStatus(mainObjectiveId, objectiveStatus);
 }
Ejemplo n.º 3
0
 public Objective(ObjectiveType type, string text, ObjectiveStatus status)
 {
     Type   = type;
     Text   = text;
     Status = status;
 }
Ejemplo n.º 4
0
 public Objective(ObjectiveType type, string text, ObjectiveStatus status)
 {
     Type = type;
     Text = text;
     Status = status;
 }
Ejemplo n.º 5
0
 static string GetObjectiveStatusText(ObjectiveStatus status)
 {
     switch (status)
     {
         case ObjectiveStatus.InProgress: return "In Progress";
         case ObjectiveStatus.Completed: return "Completed";
         case ObjectiveStatus.Failed: return "Failed";
         default: return "";
     }
 }
Ejemplo n.º 6
0
 public ResourceObjective(int amountToKeep)
 {
     this.amountToKeep = amountToKeep;
     this.status       = ObjectiveStatus.InProgress;
 }
Ejemplo n.º 7
0
 void Awake()
 {
     status        = ObjectiveStatus.Inactive;
     currentAmount = 0;
 }