Exemplo n.º 1
0
 public static void SetFirewoodCountAtGrade(QualityGrade grade, int newValue)
 {
     firewood[grade.GetHashCode()] = Mathf.Clamp(newValue, 0, PlayerSkills.GetMaxLumberFirewoodValue());
 }
Exemplo n.º 2
0
 public static void UpdateFirewoodCountAtGrade(QualityGrade grade, int changeValue)
 {
     firewood[grade.GetHashCode()] = Mathf.Clamp((firewood[grade.GetHashCode()] += changeValue), 0, PlayerSkills.GetMaxLumberFirewoodValue());
 }
Exemplo n.º 3
0
 public static int GetFirewoodCountAtGrade(QualityGrade grade)
 {
     return(firewood[grade.GetHashCode()]);
 }
    public LumberResourceQuantity(int t, QualityGrade tGrade, int l, QualityGrade lGrade, int f, QualityGrade fGrade)
    {
        trees     = t;
        treeGrade = tGrade;

        logs     = l;
        logGrade = lGrade;

        firewood      = f;
        firewoodGrade = fGrade;
    }
 public void SetFirewoodGrade(QualityGrade newGrade)
 {
     firewoodGrade = newGrade;
 }
 public void SetLogGrade(QualityGrade newGrade)
 {
     logGrade = newGrade;
 }
 public void SetTreeGrade(QualityGrade newGrade)
 {
     treeGrade = newGrade;
 }