From a2c493b81e417c802aa581eb14bdc675c98c03ae Mon Sep 17 00:00:00 2001 From: Zakarya Date: Sat, 8 Mar 2025 17:23:48 -0800 Subject: [PATCH] The editor plugin nonsense turned out to be useless --- BSON Examples/dunk.tscn | 1 - addons/bson/bson.gd | 5 +---- addons/bson/plugin.cfg | 7 ------- addons/bson/plugin.gd | 20 -------------------- addons/bson/plugin.gd.uid | 1 - project.godot | 8 -------- 6 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 addons/bson/plugin.cfg delete mode 100644 addons/bson/plugin.gd delete mode 100644 addons/bson/plugin.gd.uid diff --git a/BSON Examples/dunk.tscn b/BSON Examples/dunk.tscn index 6e220ea..7a54649 100644 --- a/BSON Examples/dunk.tscn +++ b/BSON Examples/dunk.tscn @@ -116,7 +116,6 @@ horizontal_alignment = 1 autowrap_mode = 3 [node name="CopyPopup" type="PopupPanel" parent="."] -transparent_bg = true position = Vector2i(492, 586) size = Vector2i(164, 31) diff --git a/addons/bson/bson.gd b/addons/bson/bson.gd index 6dd6a3e..22e839a 100644 --- a/addons/bson/bson.gd +++ b/addons/bson/bson.gd @@ -2,10 +2,7 @@ # This file is the BSON serializer for the Godot Engine, # published under the MIT license. https://opensource.org/license/MIT -extends Node -# Unfortunately, this has to be a node in order to be a singleton. -# I'd rather BSON wasn't in the scenetree, but it seems like that's -# the only way to do this. Hopefully this will change in the future. +class_name BSON static func to_bson(data: Dictionary) -> PackedByteArray: diff --git a/addons/bson/plugin.cfg b/addons/bson/plugin.cfg deleted file mode 100644 index ae2b3c5..0000000 --- a/addons/bson/plugin.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[plugin] - -name="BSON" -description="A BSON class to serialize and deserialize BSON in GDScript." -author="Colormatic Studios" -version="" -script="plugin.gd" diff --git a/addons/bson/plugin.gd b/addons/bson/plugin.gd deleted file mode 100644 index b7c36d0..0000000 --- a/addons/bson/plugin.gd +++ /dev/null @@ -1,20 +0,0 @@ -@tool -extends EditorPlugin - - -const AUTOLOAD_NAME = "BSON" - - -#func _enter_tree() -> void: - # Initialization of the plugin goes here. - #pass - -#func _exit_tree() -> void: - # Clean-up of the plugin goes here. - #pass - -func _enable_plugin() -> void: - add_autoload_singleton(AUTOLOAD_NAME, "res://addons/bson/bson.gd") - -func _disable_plugin() -> void: - remove_autoload_singleton(AUTOLOAD_NAME) diff --git a/addons/bson/plugin.gd.uid b/addons/bson/plugin.gd.uid deleted file mode 100644 index 4020b44..0000000 --- a/addons/bson/plugin.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://csghpbkcd8wca diff --git a/project.godot b/project.godot index 272c492..b1fe417 100644 --- a/project.godot +++ b/project.godot @@ -14,11 +14,3 @@ config/name="BSON for Godot" run/main_scene="res://BSON Examples/dunk.tscn" config/features=PackedStringArray("4.4", "Forward Plus") config/icon="res://icon.svg" - -[autoload] - -BSON="*res://addons/bson/bson.gd" - -[editor_plugins] - -enabled=PackedStringArray("res://addons/bson/plugin.cfg")