|
|
@ -41,7 +41,7 @@ test "World_progress_w_0" { |
|
|
|
|
|
|
|
|
|
|
|
const move_system = try world.system("move", move, c.EcsOnUpdate, "Position, Velocity"); |
|
|
|
const move_system = try world.system("move", move, c.EcsOnUpdate, "Position, Velocity"); |
|
|
|
|
|
|
|
|
|
|
|
var ctx = util.Probe.init(); |
|
|
|
var ctx = util.Probe{}; |
|
|
|
c.ecs_set_ctx(world.raw, &ctx, null); |
|
|
|
c.ecs_set_ctx(world.raw, &ctx, null); |
|
|
|
|
|
|
|
|
|
|
|
e1.set(Position, .{ .x = 0, .y = 0 }); |
|
|
|
e1.set(Position, .{ .x = 0, .y = 0 }); |
|
|
@ -78,7 +78,7 @@ test "World_progress_w_t" { |
|
|
|
|
|
|
|
|
|
|
|
const move_system = try world.system("move", move, c.EcsOnUpdate, "Position, Velocity"); |
|
|
|
const move_system = try world.system("move", move, c.EcsOnUpdate, "Position, Velocity"); |
|
|
|
|
|
|
|
|
|
|
|
var ctx = util.Probe.init(); |
|
|
|
var ctx = util.Probe{}; |
|
|
|
c.ecs_set_ctx(world.raw, &ctx, null); |
|
|
|
c.ecs_set_ctx(world.raw, &ctx, null); |
|
|
|
|
|
|
|
|
|
|
|
e1.set(Position, .{ .x = 0, .y = 0 }); |
|
|
|
e1.set(Position, .{ .x = 0, .y = 0 }); |
|
|
|