Exemple #1
0
    public Resource GetResource(CharacterResourceType resourceType)
    {
        switch (resourceType)
        {
        case CharacterResourceType.Vitality:
            return(Vitality);

        case CharacterResourceType.Energy:
            return(Energy);

        case CharacterResourceType.Hunger:
            return(Hunger);

        case CharacterResourceType.Hygiene:
            return(Hygiene);

        case CharacterResourceType.Loyalty:
            return(Loyalty);

        default:
            return(null);
        }
    }
Exemple #2
0
 public static int GetCharactersResourceAmount(this Character ch, CharacterResourceType res)
 {
     throw new NotImplementedException();
 }