From a364d4330dfd34f953f64e90020f8b8d6f2e82c4 Mon Sep 17 00:00:00 2001 From: Physcik Date: Sat, 10 Jan 2026 17:27:55 +0500 Subject: World storage system change --- engine/Components/World/World.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'engine/Components/World/World.go') diff --git a/engine/Components/World/World.go b/engine/Components/World/World.go index 80ef7e9..d360adc 100644 --- a/engine/Components/World/World.go +++ b/engine/Components/World/World.go @@ -9,11 +9,12 @@ var Texture rl.Texture2D // The scene full of tiles type World struct { - TileSize rl.Vector2 - TextureNames map[int]string - Textures map[int]rl.Texture2D - Tiles [][]Tile - Camera rl.Camera2D + Name string `json:"name"` + TileSize rl.Vector2 `json:"tilesize"` + TextureNames map[int]string `json:"textures"` + Textures map[int]rl.Texture2D `json:"-"` + Tiles [][]Tile `json:"tiles"` + Camera rl.Camera2D `json:"-"` } func (base *World) IsValid() error { -- cgit v1.3