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."); } }
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); } }; }
public SystemGroup(WorldCollection collection) : base(collection) { initializePassRegister = new InitializePassRegister(); updatePassRegister = new UpdatePassRegister(); }