summaryrefslogtreecommitdiff
path: root/engine/Components/World/World.go
diff options
context:
space:
mode:
Diffstat (limited to 'engine/Components/World/World.go')
-rw-r--r--engine/Components/World/World.go11
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 {