[godot] Clean-up includes.

This commit is contained in:
Mario Zechner 2022-04-20 14:07:25 +02:00
parent 85d0e7f7c1
commit 32a5fd05b6
14 changed files with 63 additions and 69 deletions

View File

@ -30,7 +30,6 @@
#include "GodotSpineExtension.h" #include "GodotSpineExtension.h"
#include "core/os/memory.h" #include "core/os/memory.h"
#include "core/os/file_access.h" #include "core/os/file_access.h"
#include <spine/SpineString.h> #include <spine/SpineString.h>
spine::SpineExtension *spine::getDefaultExtension() { spine::SpineExtension *spine::getDefaultExtension() {

View File

@ -32,7 +32,6 @@
#include "SpineEvent.h" #include "SpineEvent.h"
#include "SpineTimeline.h" #include "SpineTimeline.h"
#include "SpineCommon.h" #include "SpineCommon.h"
#include "core/method_bind_ext.gen.inc" #include "core/method_bind_ext.gen.inc"
void SpineAnimation::_bind_methods() { void SpineAnimation::_bind_methods() {

View File

@ -27,11 +27,10 @@
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/ *****************************************************************************/
#include "core/io/json.h"
#include "scene/resources/texture.h"
#include "SpineAtlasResource.h" #include "SpineAtlasResource.h"
#include "SpineRendererObject.h" #include "SpineRendererObject.h"
#include "core/io/json.h"
#include "scene/resources/texture.h"
#include <spine/TextureLoader.h> #include <spine/TextureLoader.h>
class GodotSpineTextureLoader : public spine::TextureLoader { class GodotSpineTextureLoader : public spine::TextureLoader {

View File

@ -30,10 +30,9 @@
#ifndef GODOT_SPINEBONE_H #ifndef GODOT_SPINEBONE_H
#define GODOT_SPINEBONE_H #define GODOT_SPINEBONE_H
#include <scene/2d/node_2d.h>
#include <spine/spine.h>
#include "SpineBoneData.h" #include "SpineBoneData.h"
#include <scene/2d/node_2d.h>
#include <spine/Bone.h>
class SpineSkeleton; class SpineSkeleton;
class SpineSprite; class SpineSprite;

View File

@ -30,8 +30,8 @@
#ifndef GODOT_SPINEBONEDATA_H #ifndef GODOT_SPINEBONEDATA_H
#define GODOT_SPINEBONEDATA_H #define GODOT_SPINEBONEDATA_H
#include "core/reference.h"
#include "SpineConstant.h" #include "SpineConstant.h"
#include "core/reference.h"
#include <spine/BoneData.h> #include <spine/BoneData.h>
class SpineBoneData : public Reference { class SpineBoneData : public Reference {

View File

@ -28,7 +28,6 @@
*****************************************************************************/ *****************************************************************************/
#include "SpineCollisionShapeProxy.h" #include "SpineCollisionShapeProxy.h"
#include "SpineSprite.h" #include "SpineSprite.h"
void SpineCollisionShapeProxy::_bind_methods() { void SpineCollisionShapeProxy::_bind_methods() {

View File

@ -31,7 +31,7 @@
#define GODOT_SPINECOLLISIONSHAPEPROXY_H #define GODOT_SPINECOLLISIONSHAPEPROXY_H
#include "scene/2d/collision_polygon_2d.h" #include "scene/2d/collision_polygon_2d.h"
#include <spine/spine.h> #include <spine/Slot.h>
class SpineSprite; class SpineSprite;
class SpineAnimationState; class SpineAnimationState;

View File

@ -28,8 +28,8 @@
*****************************************************************************/ *****************************************************************************/
#include "SpineConstraintData.h" #include "SpineConstraintData.h"
#include <spine/ConstraintData.h>
#include "SpineCommon.h" #include "SpineCommon.h"
#include <spine/ConstraintData.h>
void SpineConstraintData::_bind_methods() { void SpineConstraintData::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_constraint_name"), &SpineConstraintData::get_constraint_name); ClassDB::bind_method(D_METHOD("get_constraint_name"), &SpineConstraintData::get_constraint_name);

View File

@ -29,7 +29,6 @@
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
#include "SpineEditorPlugin.h" #include "SpineEditorPlugin.h"
#include "SpineAtlasResource.h" #include "SpineAtlasResource.h"
#include "SpineSkeletonFileResource.h" #include "SpineSkeletonFileResource.h"

View File

@ -32,8 +32,8 @@
#include "editor/editor_properties_array_dict.h" #include "editor/editor_properties_array_dict.h"
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
#include "editor/editor_node.h"
#include "SpineSprite.h" #include "SpineSprite.h"
#include "editor/editor_node.h"
#include "editor/editor_properties.h" #include "editor/editor_properties.h"
class SpineAtlasResourceImportPlugin : public EditorImportPlugin { class SpineAtlasResourceImportPlugin : public EditorImportPlugin {

View File

@ -32,11 +32,11 @@
#include "SpineSlotData.h" #include "SpineSlotData.h"
#include "SpineAttachment.h" #include "SpineAttachment.h"
#include "SpineBone.h"
// Breaks cyclic dependency.
class SpineSkeleton; class SpineSkeleton;
class SpineBone;
class SpineSlot : public Reference { class SpineSlot : public Reference {
GDCLASS(SpineSlot, Reference); GDCLASS(SpineSlot, Reference);

View File

@ -30,8 +30,8 @@
#ifndef GODOT_SPINESLOTDATA_H #ifndef GODOT_SPINESLOTDATA_H
#define GODOT_SPINESLOTDATA_H #define GODOT_SPINESLOTDATA_H
#include "core/object.h"
#include "SpineBoneData.h" #include "SpineBoneData.h"
#include "core/object.h"
#include <spine/SlotData.h> #include <spine/SlotData.h>
class SpineSlotData : public Reference { class SpineSlotData : public Reference {

View File

@ -30,12 +30,11 @@
#ifndef GODOT_SPINESPRITE_H #ifndef GODOT_SPINESPRITE_H
#define GODOT_SPINESPRITE_H #define GODOT_SPINESPRITE_H
#include "scene/2d/node_2d.h"
#include "scene/resources/texture.h"
#include "SpineSkeleton.h" #include "SpineSkeleton.h"
#include "SpineAnimationState.h" #include "SpineAnimationState.h"
#include "scene/2d/node_2d.h"
#include "scene/2d/mesh_instance_2d.h" #include "scene/2d/mesh_instance_2d.h"
#include "scene/resources/texture.h"
class SpineSprite : public Node2D, public spine::AnimationStateListenerObject { class SpineSprite : public Node2D, public spine::AnimationStateListenerObject {
GDCLASS(SpineSprite, Node2D); GDCLASS(SpineSprite, Node2D);

View File

@ -32,6 +32,7 @@
#include "SpineTransformConstraintData.h" #include "SpineTransformConstraintData.h"
#include "SpineBone.h" #include "SpineBone.h"
#include <spine/TransformConstraint.h>
class SpineTransformConstraint : public Reference { class SpineTransformConstraint : public Reference {
GDCLASS(SpineTransformConstraint, Reference); GDCLASS(SpineTransformConstraint, Reference);