14 lines
318 B
GDScript
14 lines
318 B
GDScript
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])
|