mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 10:46:53 +08:00
[godot] Clean-up register_types.
This commit is contained in:
parent
a194648f3a
commit
dd163d9a81
@ -28,9 +28,7 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#include "register_types.h"
|
#include "register_types.h"
|
||||||
|
|
||||||
#include "core/class_db.h"
|
#include "core/class_db.h"
|
||||||
|
|
||||||
#include "SpineAtlasResource.h"
|
#include "SpineAtlasResource.h"
|
||||||
#include "SpineSkeletonFileResource.h"
|
#include "SpineSkeletonFileResource.h"
|
||||||
#include "SpineSkeletonDataResource.h"
|
#include "SpineSkeletonDataResource.h"
|
||||||
@ -55,24 +53,20 @@
|
|||||||
#include "SpineConstant.h"
|
#include "SpineConstant.h"
|
||||||
#include "SpineCollisionShapeProxy.h"
|
#include "SpineCollisionShapeProxy.h"
|
||||||
|
|
||||||
|
|
||||||
static Ref<SpineAtlasResourceFormatLoader> atlas_loader;
|
static Ref<SpineAtlasResourceFormatLoader> atlas_loader;
|
||||||
static Ref<SpineAtlasResourceFormatSaver> atlas_saver;
|
static Ref<SpineAtlasResourceFormatSaver> atlas_saver;
|
||||||
static Ref<SpineSkeletonFileResourceFormatLoader> skeleton_file_loader;
|
static Ref<SpineSkeletonFileResourceFormatLoader> skeleton_file_loader;
|
||||||
static Ref<SpineSkeletonFileResourceFormatSaver> skeleton_file_saver;
|
static Ref<SpineSkeletonFileResourceFormatSaver> skeleton_file_saver;
|
||||||
|
|
||||||
// editor plugin
|
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
#include "editor/editor_export.h"
|
#include "editor/editor_export.h"
|
||||||
#include "editor/editor_node.h"
|
#include "editor/editor_node.h"
|
||||||
|
|
||||||
#include "SpineRuntimeEditorPlugin.h"
|
#include "SpineRuntimeEditorPlugin.h"
|
||||||
|
|
||||||
static void editor_init_callback() {
|
static void editor_init_callback() {
|
||||||
EditorNode::get_singleton()->add_editor_plugin(memnew(SpineRuntimeEditorPlugin(EditorNode::get_singleton())));
|
EditorNode::get_singleton()->add_editor_plugin(memnew(SpineRuntimeEditorPlugin(EditorNode::get_singleton())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void register_spine_godot_types() {
|
void register_spine_godot_types() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user