public void ParseInt()
        {
            var expected = TableExtensions.ParseInt("700");

            Assert.AreEqual(700, expected);
            Assert.Throws <ArgumentException>(() => TableExtensions.ParseInt(""));
        }
Example #2
0
        public void Update(GameConfigSheet.Row row)
        {
            switch (row.Key)
            {
            case "hourglass_per_block":
                HourglassPerBlock = TableExtensions.ParseInt(row.Value);
                break;

            case "action_point_max":
                ActionPointMax = TableExtensions.ParseInt(row.Value);
                break;

            case "daily_reward_interval":
                DailyRewardInterval = TableExtensions.ParseInt(row.Value);
                break;

            case "daily_arena_interval":
                DailyArenaInterval = TableExtensions.ParseInt(row.Value);
                break;

            case "weekly_arena_interval":
                WeeklyArenaInterval = TableExtensions.ParseInt(row.Value);
                break;
            }
        }
Example #3
0
        public void Update(GameConfigSheet.Row row)
        {
            switch (row.Key)
            {
            case "hourglass_per_block":
                HourglassPerBlock = TableExtensions.ParseInt(row.Value);
                break;

            case "action_point_max":
                ActionPointMax = TableExtensions.ParseInt(row.Value);
                break;
            }
        }