This commit is contained in:
Adrien Ufferte
2025-06-18 16:43:00 +02:00
parent 6be4e67b50
commit ab8efbcbf3
52 changed files with 176 additions and 176 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ const SUPPORTED_LOCALES: Array[String] = [
print("DeviceSettings: language SET: " + TranslationServer.get_locale())
@export var teacher: String
@export var device_id: int
@export var language_versions: Dictionary = {} # locale : datetime
@export var language_versions: Dictionary = {} # locale: datetime
@export var master_volume: float = 0.0:
set(volume):
+1 -1
View File
@@ -23,7 +23,7 @@ func init_unlocks() -> bool:
if not unlocks:
unlocks = {}
# Verifiy the lessons
# Verify the lessons
var number_of_lessons: int = Database.get_lessons_count()
if unlocks.size() != number_of_lessons:
for index: int in number_of_lessons:
+5 -5
View File
@@ -17,7 +17,7 @@ enum EducationMethod {
@export var account_type: AccountType
@export var education_method: EducationMethod
var devices_count: int
@export var students: Dictionary[int, Array] = {} # int (device) : Array[StudentData]
@export var students: Dictionary[int, Array] = {} # int (device): Array[StudentData]
@export var email: String
var password: String
@export var token: String
@@ -126,14 +126,14 @@ func get_number_of_students() -> int:
if not students:
return 0
var result: int = 0
for datas: Array[StudentData] in students.values():
result += datas.size()
for data: Array[StudentData] in students.values():
result += data.size()
return result
func get_all_students_data() -> Array[StudentData]:
var result: Array[StudentData]
for datas: Array[StudentData] in students.values():
result.append_array(datas)
for data: Array[StudentData] in students.values():
result.append_array(data)
return result
func delete_student(student_code: int) -> void:
+1 -1
View File
@@ -4,7 +4,7 @@ class_name UserDifficulty
signal difficulty_changed()
# Stores the user history for all the minigames
# Key -> minigame_name : String
# Key -> minigame_name: String
# Value -> UserMinigameHistory
@export
var minigames_histories: Dictionary = {}