You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
604 B

using gaemstone.ECS;
namespace gaemstone;
public class Universe<TContext>
{
public World<TContext> World { get; }
public ModuleManager<TContext> Modules { get; }
public Universe(params string[] args)
{
World = new(args);
Modules = new(this);
// Bootstrap [Relation] tag, since it will be added to some Flecs types.
World.New("/gaemstone/Doc/Relation").Build()
.CreateLookup<Doc.Relation>();
// Bootstrap built-in (static) modules from Flecs.
Modules.Register<Flecs.Core>();
Modules.Register<Flecs.Doc>();
Modules.Register<Flecs.Pipeline>();
Modules.Register<Doc>();
}
}