Update README.md
This commit is contained in:
parent
427c925bc5
commit
5360be5b0e
@ -34,9 +34,9 @@ while (iter.next()) |entity| {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The same example using a non-owning Group:
|
The same example using an owning Group:
|
||||||
```zig
|
```zig
|
||||||
var group = reg.group(.{}, .{ Velocity, Position }, .{});
|
var group = reg.group(.{ Velocity, Position }, .{}, .{});
|
||||||
group.each(each);
|
group.each(each);
|
||||||
|
|
||||||
fn each(e: struct { vel: *Velocity, pos: *Position }) void {
|
fn each(e: struct { vel: *Velocity, pos: *Position }) void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user