Fix flecs monitor

wip/source-generators
copygirl 2 years ago
parent c859bd37a1
commit 0e25265366
  1. 2
      src/Immersion/Program.cs
  2. 4
      src/gaemstone/ECS/Universe.cs

@ -22,7 +22,7 @@ Resources.ResourceAssembly = typeof(Program).Assembly;
var universe = new Universe();
var game = universe.LookupOrThrow<Game>();
universe.EnableRest();
// universe.EnableMonitor();
universe.EnableMonitor();
var window = Window.Create(WindowOptions.Default with {
Title = "gæmstone",

@ -36,7 +36,7 @@ public unsafe partial class Universe
static void RestImport(ecs_world_t* world)
=> FlecsRestImport(world);
ecs_import(this, new() { Data = new() { Pointer = &RestImport } }, "FlecsRest");
ecs_import_c(this, new() { Data = new() { Pointer = &RestImport } }, "FlecsRest");
var rest = LookupOrThrow("flecs.rest.Rest");
_lookupByType.Add(typeof(EcsRest), rest);
@ -49,7 +49,7 @@ public unsafe partial class Universe
static void MonitorImport(ecs_world_t* world)
=> FlecsMonitorImport(world);
ecs_import(this, new() { Data = new() { Pointer = &MonitorImport } }, "FlecsMonitor");
ecs_import_c(this, new() { Data = new() { Pointer = &MonitorImport } }, "FlecsMonitor");
}
public bool Progress(TimeSpan delta)

Loading…
Cancel
Save