Beispiel #1
0
        public static IEntity DeserializeOutsideEngine(string input)
        {
            var fakeSystemContainer = new SystemContainer();

            fakeSystemContainer.CreateSystems("");

            return(Deserialize(fakeSystemContainer, input));
        }
        public void SetUp()
        {
            systemContainer = new SystemContainer();

            systemContainer.CreateSystems("seed");

            systemContainer.EntityEngine.Initialise(systemContainer);

            entity = GetTestEntity();

            statSystem = systemContainer.StatSystem;
        }
        public void SetUp()
        {
            systemContainer = new SystemContainer();

            systemContainer.CreateSystems("seed");

            positionSystem = systemContainer.PositionSystem;
            systemContainer.EntityEngine.Initialise(systemContainer);

            mover = GetTestEntity();
            map   = SetUpTestMap();
        }
        public void SetUp()
        {
            entityId = 0;

            systemContainer = new SystemContainer();

            systemContainer.CreateSystems("seed");
            systemContainer.EventSystem = Substitute.For <IEventSystem>();
            systemContainer.EventSystem.Try(Arg.Any <EventType>(), Arg.Any <IEntity>(), Arg.Any <object>()).ReturnsForAnyArgs(true);

            systemContainer.EntityEngine.Initialise(systemContainer);

            learner = GetTestEntity();
        }
Beispiel #5
0
        public void SetUp()
        {
            SystemContainer = new SystemContainer();

            SystemContainer.CreateSystems("TEST SEED");
        }