summaryrefslogtreecommitdiff
path: root/engine/Dynamic/Descriptors/Textures.go
diff options
context:
space:
mode:
authorPhyscik <mynameisgennadiy@vk.com>2026-01-11 20:43:46 +0500
committerPhyscik <mynameisgennadiy@vk.com>2026-01-11 20:43:46 +0500
commit4c614ef14ebf4c3cd16c1e96283dc3763b9b0d0a (patch)
tree2e82a07e2b5f782b0991ee824109295784308b59 /engine/Dynamic/Descriptors/Textures.go
parent754c860540660f004d09f1634ff62a56c481972e (diff)
World rendering
Diffstat (limited to 'engine/Dynamic/Descriptors/Textures.go')
-rw-r--r--engine/Dynamic/Descriptors/Textures.go12
1 files changed, 12 insertions, 0 deletions
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
}