aboutsummaryrefslogtreecommitdiff
path: root/tools/compile_assets/main.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-01-15 20:23:41 -0500
committeriamcheeseman <[hidden email]>2026-01-15 20:23:41 -0500
commitc353e0b095fb724ee50d6e09fb00cc82b51da250 (patch)
tree060f11a1e09352e3191b0fc1ad7970abc8b7e3a0 /tools/compile_assets/main.odin
parent012a78995d9e360de1d931943b34f21d4f4a85af (diff)
unlockable abilities
Diffstat (limited to 'tools/compile_assets/main.odin')
-rw-r--r--tools/compile_assets/main.odin18
1 files changed, 7 insertions, 11 deletions
diff --git a/tools/compile_assets/main.odin b/tools/compile_assets/main.odin
index 01fdb3f..b82b5f3 100644
--- a/tools/compile_assets/main.odin
+++ b/tools/compile_assets/main.odin
@@ -35,13 +35,6 @@ Tileset_Id :: enum {
Object_Type :: enum {
<object-types>}
-Resource_Id :: union {
- Image_Id,
- Animation_Id,
- Room_Id,
- Tileset_Id,
-}
-
images: [Image_Id]Image_Resource = {
<image-load>}
@@ -60,12 +53,15 @@ tiles: []Tile_Resource = {
world: []Room_Position_Resource = {
<room-positions>}
-path_to_id: map[string]Resource_Id = {
-<resource-paths>}
-
-load_resources :: proc() {
+Resource_Id :: union {
+ Image_Id,
+ Animation_Id,
+ Room_Id,
+ Tileset_Id,
}
+path_to_resource_id: map[string]Resource_Id = {
+<resource-paths>}
`
images: map[string]string