You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would I got about dynamically adding new systems and components to the main loop without needing to modify it?
Take this for example...
publicstaticvoidMain(string[]args){vardeltaTime=0.05f;// This is mostly given by engines, frameworks// Create a world and a group of systems which will be controlled varworld= World.Create();var_systems=newGroup<float>(new MovementSystem(world),// Run in ordernew MyOtherSystem(...),
...);
_systems.Initialize();// Inits all registered systems
_systems.BeforeUpdate(in deltaTime);// Calls .BeforeUpdate on all systems ( can be overriden )
_systems.Update(in deltaTime);// Calls .Update on all systems ( can be overriden )
_systems.AfterUpdate(in deltaTime);// Calls .AfterUpdate on all System ( can be overriden )
_systems.Dispose();// Calls .Dispose on all systems ( can be overriden )}
Thats possible, but not build in yet. Could come in the future tho, for now you need to manage that yourself... or you write such a generator yourself ^^
How would I got about dynamically adding new systems and components to the main loop without needing to modify it?
Take this for example...
Is there a way I can do something like this?
or maybe something like this...
The text was updated successfully, but these errors were encountered: