init
This commit is contained in:
13
Scripts/AutoLoad/SkinManager.gd
Normal file
13
Scripts/AutoLoad/SkinManager.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
extends Node
|
||||
|
||||
# Placeholder skins
|
||||
var skins: Dictionary = {
|
||||
0: "res://icon.svg", # Fallback
|
||||
}
|
||||
|
||||
func get_skin_texture(id: int) -> Texture2D:
|
||||
if skins.has(id):
|
||||
# In a real scenario, this would preload or load form cache
|
||||
# For now, using load() is fine for prototype
|
||||
return load(skins[id])
|
||||
return load(skins[0])
|
||||
Reference in New Issue
Block a user