initial commit

This commit is contained in:
harper
2026-09-22 15:40:36 -07:00
commit 480501a6b6
7 changed files with 254 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
package ecs
import "core:fmt"
startup_systems: [dynamic]proc()
update_systems: [dynamic]proc()
fixed_update_systems: [dynamic]proc()
App :: struct {}
Component :: union {
Transform,
}
Transform :: struct {}
STARTUP :: 0
UPDATE :: 1
FIXED_UPDATE :: 2
add_system :: proc(schedule: int, system: proc()) {
switch schedule {
case 0:
append(&startup_systems, system)
case 1:
append(&update_systems, system)
case 2:
append(&fixed_update_systems, system)
}
}
ping :: proc() {
}