Seperated Structs and Tables

This allows multiple tables to use the exsact same struct, it also allows substructs to be used multiple times.
This commit is contained in:
ookami125 2025-03-23 17:53:45 -04:00
parent bb444a9755
commit 2331a29358
4 changed files with 136 additions and 102 deletions

View file

@ -7,7 +7,8 @@ pub export fn spacetime_includes() void {
}
pub const moduleTablesDef = .{
.person = Person,
.person = spacetime.Table(.{.name = "person", .layout = Person}),
.person2 = spacetime.Table(.{.name = "person2", .layout = Person}),
};
pub const moduleReducersDef = .{