|
|
|
@ -10,6 +10,9 @@ const util = @import("./../util.zig"); |
|
|
|
|
const flecszigble = @import("../../main.zig"); |
|
|
|
|
const c = flecszigble.c; |
|
|
|
|
|
|
|
|
|
const flecs = @import("../../builtin/flecs.zig"); |
|
|
|
|
const OnUpdate = flecs.pipeline.OnUpdate; |
|
|
|
|
|
|
|
|
|
const Context = flecszigble.Context(void); |
|
|
|
|
const World = Context.World; |
|
|
|
|
const Iter = Context.Iter; |
|
|
|
@ -39,7 +42,7 @@ test "World_progress_w_0" { |
|
|
|
|
|
|
|
|
|
const e1 = try world.entity(.{}, .{ Position, Velocity }); |
|
|
|
|
|
|
|
|
|
const move_system = try world.system("move", move, c.EcsOnUpdate, "Position, Velocity"); |
|
|
|
|
const move_system = try world.system("move", move, OnUpdate, "Position, Velocity"); |
|
|
|
|
|
|
|
|
|
var ctx = util.Probe{}; |
|
|
|
|
c.ecs_set_ctx(world.raw, &ctx, null); |
|
|
|
@ -76,7 +79,7 @@ test "World_progress_w_t" { |
|
|
|
|
|
|
|
|
|
const e1 = try world.entity(.{}, .{ Position, Velocity }); |
|
|
|
|
|
|
|
|
|
const move_system = try world.system("move", move, c.EcsOnUpdate, "Position, Velocity"); |
|
|
|
|
const move_system = try world.system("move", move, OnUpdate, "Position, Velocity"); |
|
|
|
|
|
|
|
|
|
var ctx = util.Probe{}; |
|
|
|
|
c.ecs_set_ctx(world.raw, &ctx, null); |
|
|
|
|