module: add new query API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-05-07 12:17:44 -07:00 committed by Stephen Gutekanst
parent 22feb42730
commit 3bd46d078d
3 changed files with 238 additions and 72 deletions

View file

@ -19,6 +19,8 @@ pub const builtin_modules = .{EntityModule};
pub const EntityModule = struct {
pub const name = .entity;
pub const Mod = mach.Mod(@This());
pub const components = .{
.id = .{ .type = EntityID, .description = "Entity ID" },
};