Пример #1
0
        public static void StartUp(TestContext ctx)
        {
            CultureInfo ci = new CultureInfo("en-US");

            Thread.CurrentThread.CurrentCulture = ci;

            Console.WriteLine("START UP");
            Engine = new GameEngine(new DiscordLogHelper(new ConsoleLogger()));
            Definer.Instance().Engine = Engine;
            BasePlayer = new MockEntity(Engine)
            {
                Name = "MOCK_PLAYER", Key = "MOCK_KEY"
            };
            Engine.AddPlayer(BasePlayer);
            DamageTypeTemplate trueDamage = new DamageTypeTemplate(Engine, null, null, null, null);

            trueDamage.Key = "T";
            Engine.AddDamageType(trueDamage);
        }