Fix some weird errors

This commit is contained in:
2025-02-28 12:17:34 -08:00
parent 6849c6c98e
commit c77584fd0d
2 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,10 @@
# This file is the BSON serializer for the Godot Engine, # This file is the BSON serializer for the Godot Engine,
# published under the MIT license. https://opensource.org/license/MIT # published under the MIT license. https://opensource.org/license/MIT
class_name BSON 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.
static func to_bson(data: Dictionary) -> PackedByteArray: static func to_bson(data: Dictionary) -> PackedByteArray:

View File

@ -15,6 +15,10 @@ run/main_scene="res://BSON Examples/dunk.tscn"
config/features=PackedStringArray("4.3", "Forward Plus") config/features=PackedStringArray("4.3", "Forward Plus")
config/icon="res://icon.svg" config/icon="res://icon.svg"
[autoload]
BSON="*res://addons/bson/bson.gd"
[editor_plugins] [editor_plugins]
enabled=PackedStringArray("res://addons/bson/plugin.cfg") enabled=PackedStringArray("res://addons/bson/plugin.cfg")