예제 #1
0
        /// <summary> Loads the data in this table </summary>
        public override void LoadData()
        {
            DataTable table = GetAllData();

            foreach (DataRow row in table.Rows)
            {
                Profession profession = TableManager.Profession.GetProfession(ProfessionId.Parse(row));
                int        grade      = Grade.Parse(row);
                Resource   resource   = TableManager.Resource.GetResource(ResourceId.Parse(row));
                int        amount     = Amount.Parse(row);
                profession.AddUpgradeCost(grade, resource, amount);
            }
        }