khanat-client/ressources/scripts/items/item.gd
2020-04-01 21:02:49 +02:00

12 lines
281 B
GDScript

extends Node
class_name Item
var label = ""
var icon = null
func from_dict( datas ):
self.label = datas.get( "label", self.label )
# var icon_filename = datas.get( "icon", null )
# if icon_filename:
# self.icon = load( "res://assets/items/"+icon_filename )