khanat-client/ressources/scripts/items/item.gd

13 lines
281 B
GDScript3
Raw Normal View History

extends Node
class_name Item
var label = ""
2020-04-01 19:02:49 +00:00
var icon = null
func from_dict( datas ):
self.label = datas.get( "label", self.label )
2020-04-01 19:02:49 +00:00
# var icon_filename = datas.get( "icon", null )
# if icon_filename:
# self.icon = load( "res://assets/items/"+icon_filename )