Files
puzzle-quest/db/MBase.gd
T

18 lines
379 B
GDScript
Raw Normal View History

2021-05-14 18:46:25 +02:00
extends Object
var table = null
func _get_data(datas, index):
return datas[index].get_data()
func _set_data(value, id, type):
table.edit_data(id, type, String(value))
Global.database.save_db()
return value
func _get_data_id(prop_name, index):
if table.get_prop_at(index).get_prop_name() == prop_name:
2021-05-14 22:15:00 +02:00
return table.get_prop_at(index).get_prop_id()
2021-05-14 18:46:25 +02:00
else:
return null