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,29 @@
|
||||
#
|
||||
# © 2026-present https://github.com/<<GitHubUsername>>
|
||||
#
|
||||
|
||||
class_name GmpLogger extends Object
|
||||
|
||||
|
||||
static func log_error(a_description: String) -> void:
|
||||
push_error("%s" % [a_description])
|
||||
|
||||
|
||||
static func log_warn(a_description: String) -> void:
|
||||
push_warning("%s" % [a_description])
|
||||
|
||||
|
||||
static func log_info(a_description: String) -> void:
|
||||
print_rich("[color=lime]INFO: %s[/color]" % [a_description])
|
||||
|
||||
|
||||
static func error(a_plugin_name: String, a_description: String) -> void:
|
||||
log_error("%s: %s" % [a_plugin_name, a_description])
|
||||
|
||||
|
||||
static func warn(a_plugin_name: String, a_description: String) -> void:
|
||||
log_warn("%s: %s" % [a_plugin_name, a_description])
|
||||
|
||||
|
||||
static func info(a_plugin_name: String, a_description: String) -> void:
|
||||
log_info("%s: %s" % [a_plugin_name, a_description])
|
||||
@@ -0,0 +1 @@
|
||||
uid://78axiycs2dmy
|
||||
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# © 2026-present https://github.com/<<GitHubUsername>>
|
||||
#
|
||||
|
||||
class_name SpmDependency extends RefCounted
|
||||
|
||||
const URL_PROPERTY := &"url"
|
||||
const VERSION_PROPERTY := &"version"
|
||||
const PRODUCTS_PROPERTY := &"products"
|
||||
|
||||
var _data: Dictionary
|
||||
|
||||
|
||||
func _init(a_data: Dictionary = {}):
|
||||
_data = a_data
|
||||
|
||||
|
||||
func get_url() -> String:
|
||||
return _data[URL_PROPERTY]
|
||||
|
||||
|
||||
func set_url(a_url: String) -> void:
|
||||
_data[URL_PROPERTY] = a_url
|
||||
|
||||
|
||||
func get_version() -> String:
|
||||
return _data[VERSION_PROPERTY]
|
||||
|
||||
|
||||
func set_version(a_version: String) -> void:
|
||||
_data[VERSION_PROPERTY] = a_version
|
||||
|
||||
|
||||
func get_products() -> Array:
|
||||
return _data[PRODUCTS_PROPERTY]
|
||||
|
||||
|
||||
func set_products(a_products: Array) -> void:
|
||||
_data[PRODUCTS_PROPERTY] = a_products
|
||||
|
||||
|
||||
func format_to_string() -> String:
|
||||
var __result: String = ""
|
||||
|
||||
for __product in get_products():
|
||||
__result += "%s@%s (%s) " % [__product, get_version(), get_url()]
|
||||
|
||||
return __result
|
||||
@@ -0,0 +1 @@
|
||||
uid://dxpvam6fnixki
|
||||
Reference in new issue
Block a user