Initial Void Bastion 0.20 prototype
This commit is contained in:
commit
7362ca0f02
251 files changed
+29688
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#
|
||||
# © 2024-present https://github.com/cengiz-pz
|
||||
#
|
||||
class_name AdapterStatus
|
||||
extends RefCounted
|
||||
|
||||
const ADAPTER_CLASS_PROPERTY := &"adapter_class"
|
||||
const LATENCY_PROPERTY := &"latency"
|
||||
const INITIALIZATION_STATE_PROPERTY := &"initialization_state"
|
||||
const DESCRIPTION_PROPERTY := &"description"
|
||||
|
||||
var _data: Dictionary
|
||||
|
||||
|
||||
func _init(a_data: Dictionary):
|
||||
_data = a_data
|
||||
|
||||
|
||||
func get_adapter_class() -> String:
|
||||
return _data[ADAPTER_CLASS_PROPERTY]
|
||||
|
||||
|
||||
func get_latency() -> int:
|
||||
return _data[LATENCY_PROPERTY]
|
||||
|
||||
|
||||
func get_initialization_state() -> String:
|
||||
return _data[INITIALIZATION_STATE_PROPERTY]
|
||||
|
||||
|
||||
func get_description() -> String:
|
||||
return _data[DESCRIPTION_PROPERTY]
|
||||
Reference in new issue
Block a user