diff options
Diffstat (limited to 'src/resources.odin')
| -rw-r--r-- | src/resources.odin | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/resources.odin b/src/resources.odin index 537c265..7051fcf 100644 --- a/src/resources.odin +++ b/src/resources.odin @@ -4,6 +4,13 @@ import "core:log" import rl "vendor:raylib" +Tiled_Property :: union { + string, + i32, + f32, + bool, +} + Image_Resource :: struct { texture: rl.Texture2D, anim: Animation_Id, @@ -26,7 +33,7 @@ Object_Resource :: struct { pos: Vec2, size: Vec2, parallax: Vec2, - properties: map[string]any, + properties: map[string]Tiled_Property, } Room_Resource :: struct { |
