示例#1
0
    public void AddToUnlockedItemsList(Workstation.Specialty specialty, Workstation.Item item)
    {
        switch (specialty)
        {
        case Workstation.Specialty.Technology:
            TechnologyUnlockedItems.Add(item);
            break;

        case Workstation.Specialty.Management:
            ManagementUnlockedItems.Add(item);
            break;

        case Workstation.Specialty.Education:
            EducationUnlockedItems.Add(item);
            break;

        default:
            break;
        }
    }
示例#2
0
    public static void SaveAACPoints(Workstation.Specialty specialty, int amount)
    {
        switch (specialty)
        {
        case Workstation.Specialty.Technology:
            saveFile.TechnologyPoints = amount;
            break;

        case Workstation.Specialty.Management:
            saveFile.ManagementPoints = amount;
            break;

        case Workstation.Specialty.Education:
            saveFile.EducationPoints = amount;
            break;

        default:
            break;
        }
    }
示例#3
0
 public void GrantPoints(Workstation.Specialty specialty, int amount)
 {
     workstationsDictionary[specialty].AddPoints(amount);
 }