Example #1
0
        private void SetGuildTestData()
        {
            UpgradeTestData testData = new UpgradeTestData();

            testData.SaveKey       = "GuildsProgress";
            testData.SaveValue     = "{\"GUILD_1\":{\"Level\":$LEVEL$,\"Points\":0}}";
            testData.TestID        = "GUILD_1";
            testData.TestClass     = "Guilds";
            testData.TestUpgradeID = "Level";
            testData.MaxLevel      = 50;
            testData.Points        = 0;
            mUpgradeTests.Add(testData);
        }
        private void SetUnitTestData()
        {
            UpgradeTestData testData = new UpgradeTestData();

            testData.SaveKey       = "UnitsProgress";
            testData.SaveValue     = "{\"BASE_WARRIOR_1\":{\"Level\":$NUM$}}";
            testData.TestID        = "BASE_WARRIOR_1";
            testData.TestClass     = "Units";
            testData.TestUpgradeID = "UnitLevel";
            testData.MaxLevel      = 50;
            testData.Cost          = 500;
            mUpgradeTests.Add(testData);
        }
Example #3
0
        protected override IEnumerator RunAllTests()
        {
            SetTestData();

            foreach (UpgradeTestData testData in mUpgradeTests)
            {
                mCurrentTestData = testData;

                yield return(RunTest());

                yield return(mBackend.WaitUntilNotBusy());
            }
        }
        private void SetBuildingTestData()
        {
            UpgradeTestData testData = new UpgradeTestData();

            testData.SaveKey       = "BuildingsProgress";
            testData.SaveValue     = "{\"BASE_WARRIOR_BUILDING_1\":{\"Level\":$NUM$}}";
            testData.TestID        = "BASE_WARRIOR_BUILDING_1";
            testData.TestClass     = "Buildings";
            testData.TestUpgradeID = "BuildingLevel";
            testData.MaxLevel      = 50;
            testData.Cost          = 500;
            mUpgradeTests.Add(testData);
        }