コード例 #1
0
        public AppSystem(WorldCollection collection) : base(null)
        {
            World   = collection;
            Context = collection.Ctx;

            if (!CanBeCreated())
            {
                throw new InvalidOperationException("This system was constructed but shouldn't have been.");
            }
        }
コード例 #2
0
        public SystemCollection(Context context, WorldCollection worldCollection)
        {
            Ctx             = context;
            WorldCollection = worldCollection;

            systemList = new OrderedList <object>();
            systemMap  = new Dictionary <Type, object>(64);

            availablePasses = new OrderedList <PassRegisterBase>();

            systemList.OnDirty += () =>
            {
                foreach (var register in availablePasses)
                {
                    register.RegisterCollectionAndFilter(systemList);
                }
            };
        }
コード例 #3
0
 public SystemGroup(WorldCollection collection) : base(collection)
 {
     initializePassRegister = new InitializePassRegister();
     updatePassRegister     = new UpdatePassRegister();
 }