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

+22
View File
@@ -0,0 +1,22 @@
#
# © 2024-present https://github.com/cengiz-pz
#
class_name FormError
extends RefCounted
const CODE_PROPERTY := &"code"
const MESSAGE_PROPERTY := &"message"
var _data: Dictionary
func _init(a_data: Dictionary):
_data = a_data if a_data else {}
func get_code() -> int:
return _data[CODE_PROPERTY] if _data.has(CODE_PROPERTY) else 0
func get_message() -> String:
return _data[MESSAGE_PROPERTY] if _data.has(MESSAGE_PROPERTY) else ""