Edit of asset "Ref Serializer" Accepted
| Old/Current | New/Edit | |
|---|---|---|
| Title | Ref Serializer | Ref Serializer |
| Description |
Utility class for registering and serializing light-weight RefCounted-based structs. It can be used as a replacement for Resources; it comes with its advantages and limitations. Register a type with: RefSerializer.register_type(&"ClassName", YourClass.new) Where ClassName is the name used to create and serialize the type and YourClass.new is a constructor Callable, which will be used to create instances of your class. YourClass can be any class, including custom internal classes. It needs to extend RefCounted. Create instances with: RefSerializer.create_object(&"ClassName") It returns an instance of your class created with the provided constructor method. Serialize with: RefSerializer.serialize_object(some_object) where some_object is an instance created with create_object() or deserialized using deserialize_object(). The methods returns a Dictionary that represents your object. Or use store methods: RefSerializer.save_as_text(some_object, "res://object.txt") RefSerializer.save_as_binary(some_object, "res://object.not_txt") Check the repository README for more details. |
Utility class for registering and serializing light-weight RefCounted-based structs. It can be used as a replacement for Resources; it comes with its advantages and limitations. Register a type with: RefSerializer.register_type(&"ClassName", YourClass.new) Where ClassName is the name used to create and serialize the type and YourClass.new is a constructor Callable, which will be used to create instances of your class. YourClass can be any class, including custom internal classes. It needs to extend RefCounted. Create instances with: RefSerializer.create_object(&"ClassName") It returns an instance of your class created with the provided constructor method. Serialize with: RefSerializer.serialize_object(some_object) where some_object is an instance created with create_object() or deserialized using deserialize_object(). The methods returns a Dictionary that represents your object. Or use store methods: RefSerializer.save_as_text(some_object, "res://object.txt") RefSerializer.save_as_binary(some_object, "res://object.not_txt") Check the repository README for more details. |
| Category | Scripts | Scripts |
| License | MIT | MIT |
| Repository Provider | GitHub | GitHub |
| Repository Url | https://github.com/KoBeWi/Godot-Ref-Serializer | https://github.com/KoBeWi/Godot-Ref-Serializer |
| Issues Url | https://github.com/KoBeWi/Godot-Ref-Serializer/issues | https://github.com/KoBeWi/Godot-Ref-Serializer/issues |
| Godot version | Godot 4.2 | Godot 4.2 |
| Version String | 1.1 | 1.0 |
| Download Commit | 973e8eeadaaf72f46808512fa80a08c7741b342a | 521a9d77b0acaaa8eca07703c210ce73feeeaf36 |
| Download Url (Computed) | https://github.com/KoBeWi/Godot-Ref-Serializer/archive/973e8eeadaaf72f46808512fa80a08c7741b342a.zip | https://github.com/KoBeWi/Godot-Ref-Serializer/archive/521a9d77b0acaaa8eca07703c210ce73feeeaf36.zip |
| Icon Url |
https://github.com/KoBeWi/Godot-Ref-Serializer/blob/master/Media/Icon.png?raw=1
|
https://github.com/KoBeWi/Godot-Ref-Serializer/blob/master/Media/Icon.png?raw=1
|