diff options
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"` -} |
