From 4c614ef14ebf4c3cd16c1e96283dc3763b9b0d0a Mon Sep 17 00:00:00 2001 From: Physcik Date: Sun, 11 Jan 2026 20:43:46 +0500 Subject: World rendering --- engine/Dynamic/Descriptors/Textures.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engine/Dynamic/Descriptors/Textures.go') diff --git a/engine/Dynamic/Descriptors/Textures.go b/engine/Dynamic/Descriptors/Textures.go index 9d480ee..f436575 100644 --- a/engine/Dynamic/Descriptors/Textures.go +++ b/engine/Dynamic/Descriptors/Textures.go @@ -1,5 +1,9 @@ package descriptors +import ( + utils "github.com/DegustatorPonos/RuinesOfRafdolon/Utils" +) + const TexturesDescriptorDirectoryName string = "Textures" const TexturesDescriptorFileName string = "Meta.json" @@ -7,6 +11,14 @@ type TexturesDescriptor struct { Avaliable []string } +func (base *TexturesDescriptor) GetTexturePath(packageLocation string, textureName string) string { + return utils.JoinFileLocations([]string { + packageLocation, + TexturesDescriptorDirectoryName, + textureName, + }) +} + func IsValid() error { return nil } -- cgit v1.3