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/Tile.go | |
| parent | e6ccb74f77d0d03d33c422ca7dc942422074d7dd (diff) | |
World storage system change
Diffstat (limited to 'engine/Components/World/Tile.go')
| -rw-r--r-- | engine/Components/World/Tile.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/engine/Components/World/Tile.go b/engine/Components/World/Tile.go index a630062..0ef3a00 100644 --- a/engine/Components/World/Tile.go +++ b/engine/Components/World/Tile.go @@ -1,6 +1,9 @@ package world -import rl "github.com/gen2brain/raylib-go/raylib" +import ( + descriptors "github.com/DegustatorPonos/RuinesOfRafdolon/Dynamic/Descriptors" + rl "github.com/gen2brain/raylib-go/raylib" +) // The square that will be displayed at the screen type Tile interface { @@ -12,7 +15,7 @@ type StandardTile struct { X float32 Y float32 ParentWorld *World - Descriptor TileDescriptor + Descriptor descriptors.TileDescriptor } func (base *StandardTile) Update() { @@ -34,8 +37,3 @@ func (base *StandardTile) Draw() { rl.White) } } - -type TileDescriptor struct { - TextureId int `json:"textureid"` - OveralyTextureId int `json:"overalytextureid"` -} |
