This commit is contained in:
wooshings
2026-09-30 20:36:42 -07:00
parent 5152eb3f31
commit e75f92ea4b
3 changed files with 20 additions and 12 deletions
+13 -1
View File
@@ -1,6 +1,18 @@
package shoal
Entity :: struct {
id: i32,
id: int,
components: [dynamic]struct{},
}
spawn_entity :: proc(app: ^App) -> Entity {
entity: Entity
entity_len := len(&app.entities)
entity.id = entity_len
return entity
}
add_collection :: proc(app: ^App, component: $T) {
}