diff options
| author | Physcik <mynameisgennadiy@vk.com> | 2026-01-10 17:27:55 +0500 |
|---|---|---|
| committer | Physcik <mynameisgennadiy@vk.com> | 2026-01-10 17:27:55 +0500 |
| commit | a364d4330dfd34f953f64e90020f8b8d6f2e82c4 (patch) | |
| tree | db71d125f633832b130821f3aec07d4b714ab7bb /engine/Components/World/World.go | |
| parent | e6ccb74f77d0d03d33c422ca7dc942422074d7dd (diff) | |
World storage system change
Diffstat (limited to 'engine/Components/World/World.go')
| -rw-r--r-- | engine/Components/World/World.go | 11 |
1 files changed, 6 insertions, 5 deletions
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 { |
