Files
shoal/entities.odin
T
2026-09-30 20:36:42 -07:00

19 lines
278 B
Odin

package shoal
Entity :: struct {
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) {
}