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:
parent
bb444a9755
commit
2331a29358
4 changed files with 136 additions and 102 deletions
|
|
@ -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 = .{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue