feature/list-object-counter (#60)

Co-authored-by: VAILLANT Jeremy <vaillant.jeremy@dev-crea.com>
Reviewed-on: Athena/game-source#60
Co-authored-by: darknight <vaillant.jeremy@dev-crea.com>
Co-committed-by: darknight <vaillant.jeremy@dev-crea.com>
This commit is contained in:
darknight
2021-05-29 21:09:10 +02:00
parent 80890cbdce
commit ed20465f39
22 changed files with 475 additions and 165 deletions
+3 -9
View File
@@ -5,13 +5,7 @@ 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))
func _set_data(prop_id, row_id, data):
table.edit_data(prop_id, row_id, String(data))
Global.database.save_db()
return value
func _get_data_id(prop_name, index):
if table.get_prop_at(index).get_prop_name() == prop_name:
return table.get_prop_at(index).get_prop_id()
else:
return null
return data