Beispiel #1
0
        public void TestSystemUpdateSingle()
        {
            world = CreateWorld();
            SystemU u = new SystemU();
            world.AddSystem(u);

            world.Update<SystemU>(1);
            Assert.AreEqual(true, u.IsUpdated, "Expect U to be updated.");
        }
Beispiel #2
0
        public void TestSystemUpdateSingleOther()
        {
            world = CreateWorld();
            SystemU u = new SystemU();
            world.AddSystem(u);

            world.Update<SystemA>(1);
            Assert.AreEqual(false, u.IsUpdated, "Expect U to not be updated, only A is updated.");
        }
Beispiel #3
0
        public void TestSystemExcludedUpdate()
        {
            world = CreateWorld();
            SystemU u = new SystemU();
            world.AddSystem(u);

            world.UpdateAll(1, typeof(SystemU));
            Assert.AreEqual(false, u.IsUpdated, "Expect U to be excluded, and thus not updated.");
        }