Clean code

This commit is contained in:
VAILLANT Jeremy
2021-05-23 21:22:30 +02:00
parent c46cb1f41e
commit fd7e341e49
-3
View File
@@ -7,7 +7,6 @@ var m_ambiant_sound = { "id": null, "value": null }
const ROW = 0 const ROW = 0
func _init(): func _init():
print("[MSetting#_ready]")
table = Global.database.get_table_by_name("settings") table = Global.database.get_table_by_name("settings")
var datas = table.get_data_at_row_idx(ROW) var datas = table.get_data_at_row_idx(ROW)
@@ -28,7 +27,6 @@ func get_gyroscope():
return int(m_gyroscope["value"]) as bool return int(m_gyroscope["value"]) as bool
func get_ambiant_sound(): func get_ambiant_sound():
print("[msetting#get_ambiant_sound] "+String(m_ambiant_sound))
return int(m_ambiant_sound["value"]) as bool return int(m_ambiant_sound["value"]) as bool
func set_langue(value): func set_langue(value):
@@ -42,7 +40,6 @@ func set_gyroscope(value):
return get_gyroscope() return get_gyroscope()
func set_ambiant_sound(value): func set_ambiant_sound(value):
print("[msetting#get_ambiant_sound] save new value of mabiant sound")
m_ambiant_sound["value"] = _set_data(value, m_ambiant_sound["id"], gddb_types.e_prop_type_bool) m_ambiant_sound["value"] = _set_data(value, m_ambiant_sound["id"], gddb_types.e_prop_type_bool)
return get_ambiant_sound() return get_ambiant_sound()