コード例 #1
0
    public bool HasInStockpile()
    {
        bool hasTrees    = HomesteadStockpile.GetTreesCountAtGrade(treeGrade) >= trees;
        bool hasLogs     = HomesteadStockpile.GetLogsCountAtGrade(logGrade) >= logs;
        bool hasFirewood = HomesteadStockpile.GetFirewoodCountAtGrade(firewoodGrade) >= firewood;

        return(hasTrees && hasLogs && hasFirewood);
    }