Initial Void Bastion 0.20 prototype

This commit is contained in:
Emporex committed 2026-10-03 21:28:56 +02:00
commit 7362ca0f02
251 files changed
+29688

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
#
# © 2024-present https://github.com/cengiz-pz
#
class_name UserConsent
extends RefCounted
enum Status {
UNKNOWN,
NOT_REQUIRED,
REQUIRED,
OBTAINED,
}
var status: Status
func _init(a_status_string: String = "") -> void:
if a_status_string == "":
status = Status.UNKNOWN
else:
status = string_to_status(a_status_string)
func to_status_string() -> String:
return Status.keys()[status]
static func status_to_string(a_status: Status) -> String:
return Status.keys()[a_status]
static func string_to_status(a_string: String) -> Status:
return Status.get(a_string)