mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[godot] Remove empty destructors.
This commit is contained in:
parent
d81fd324cb
commit
ac5bab64b4
@ -47,9 +47,6 @@ void SpineAnimation::_bind_methods() {
|
|||||||
SpineAnimation::SpineAnimation() : animation(nullptr) {
|
SpineAnimation::SpineAnimation() : animation(nullptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SpineAnimation::~SpineAnimation() {
|
|
||||||
}
|
|
||||||
|
|
||||||
String SpineAnimation::get_name() {
|
String SpineAnimation::get_name() {
|
||||||
SPINE_CHECK(animation, "")
|
SPINE_CHECK(animation, "")
|
||||||
return animation->getName().buffer();
|
return animation->getName().buffer();
|
||||||
|
|||||||
@ -49,7 +49,6 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SpineAnimation();
|
SpineAnimation();
|
||||||
~SpineAnimation();
|
|
||||||
|
|
||||||
void set_spine_object(spine::Animation *animation) { this->animation = animation; }
|
void set_spine_object(spine::Animation *animation) { this->animation = animation; }
|
||||||
|
|
||||||
|
|||||||
@ -101,8 +101,6 @@ void SpineBone::_bind_methods() {
|
|||||||
|
|
||||||
SpineBone::SpineBone() : bone(nullptr), sprite(nullptr) {}
|
SpineBone::SpineBone() : bone(nullptr), sprite(nullptr) {}
|
||||||
|
|
||||||
SpineBone::~SpineBone() {}
|
|
||||||
|
|
||||||
void SpineBone::set_spine_sprite(SpineSprite* _sprite) {
|
void SpineBone::set_spine_sprite(SpineSprite* _sprite) {
|
||||||
this->sprite = _sprite;
|
this->sprite = _sprite;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,7 +49,6 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SpineBone();
|
SpineBone();
|
||||||
~SpineBone();
|
|
||||||
|
|
||||||
void set_spine_object(spine::Bone *_bone) { bone = _bone; }
|
void set_spine_object(spine::Bone *_bone) { bone = _bone; }
|
||||||
|
|
||||||
|
|||||||
@ -61,9 +61,6 @@ void SpineBoneData::_bind_methods() {
|
|||||||
SpineBoneData::SpineBoneData() : bone_data(nullptr) {
|
SpineBoneData::SpineBoneData() : bone_data(nullptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SpineBoneData::~SpineBoneData() {
|
|
||||||
}
|
|
||||||
|
|
||||||
int SpineBoneData::get_index() {
|
int SpineBoneData::get_index() {
|
||||||
SPINE_CHECK(bone_data, 0)
|
SPINE_CHECK(bone_data, 0)
|
||||||
return bone_data->getIndex();
|
return bone_data->getIndex();
|
||||||
|
|||||||
@ -45,7 +45,6 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SpineBoneData();
|
SpineBoneData();
|
||||||
~SpineBoneData();
|
|
||||||
|
|
||||||
void set_spine_object(spine::BoneData *_bone_data) { bone_data = _bone_data; }
|
void set_spine_object(spine::BoneData *_bone_data) { bone_data = _bone_data; }
|
||||||
|
|
||||||
|
|||||||
@ -42,9 +42,6 @@ void SpineConstraintData::_bind_methods() {
|
|||||||
SpineConstraintData::SpineConstraintData() : constraint_data(nullptr) {
|
SpineConstraintData::SpineConstraintData() : constraint_data(nullptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SpineConstraintData::~SpineConstraintData() {
|
|
||||||
}
|
|
||||||
|
|
||||||
String SpineConstraintData::get_constraint_name() {
|
String SpineConstraintData::get_constraint_name() {
|
||||||
SPINE_CHECK(constraint_data, "")
|
SPINE_CHECK(constraint_data, "")
|
||||||
return constraint_data->getName().buffer();
|
return constraint_data->getName().buffer();
|
||||||
|
|||||||
@ -46,7 +46,6 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SpineConstraintData();
|
SpineConstraintData();
|
||||||
~SpineConstraintData();
|
|
||||||
|
|
||||||
void set_spine_object(spine::ConstraintData *_constraint_data) {
|
void set_spine_object(spine::ConstraintData *_constraint_data) {
|
||||||
constraint_data = _constraint_data;
|
constraint_data = _constraint_data;
|
||||||
|
|||||||
@ -115,8 +115,7 @@ class SpineEditorPlugin : public EditorPlugin {
|
|||||||
GDCLASS(SpineEditorPlugin, EditorPlugin)
|
GDCLASS(SpineEditorPlugin, EditorPlugin)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SpineEditorPlugin(EditorNode *node);
|
explicit SpineEditorPlugin(EditorNode *node);
|
||||||
~SpineEditorPlugin();
|
|
||||||
|
|
||||||
String get_name() const override { return "SpineEditorPlugin"; }
|
String get_name() const override { return "SpineEditorPlugin"; }
|
||||||
|
|
||||||
|
|||||||
@ -48,9 +48,6 @@ void SpineEvent::_bind_methods() {
|
|||||||
SpineEvent::SpineEvent() : event(nullptr) {
|
SpineEvent::SpineEvent() : event(nullptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SpineEvent::~SpineEvent() {
|
|
||||||
}
|
|
||||||
|
|
||||||
Ref<SpineEventData> SpineEvent::get_data() {
|
Ref<SpineEventData> SpineEvent::get_data() {
|
||||||
SPINE_CHECK(event, nullptr)
|
SPINE_CHECK(event, nullptr)
|
||||||
Ref<SpineEventData> event_data(memnew(SpineEventData));
|
Ref<SpineEventData> event_data(memnew(SpineEventData));
|
||||||
|
|||||||
@ -45,7 +45,6 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SpineEvent();
|
SpineEvent();
|
||||||
~SpineEvent();
|
|
||||||
|
|
||||||
void set_spine_object(spine::Event *_event) { event = _event; }
|
void set_spine_object(spine::Event *_event) { event = _event; }
|
||||||
|
|
||||||
|
|||||||
@ -47,9 +47,6 @@ void SpineEventData::_bind_methods() {
|
|||||||
SpineEventData::SpineEventData() : event_data(nullptr) {
|
SpineEventData::SpineEventData() : event_data(nullptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SpineEventData::~SpineEventData() {
|
|
||||||
}
|
|
||||||
|
|
||||||
String SpineEventData::get_event_name() {
|
String SpineEventData::get_event_name() {
|
||||||
SPINE_CHECK(event_data, "")
|
SPINE_CHECK(event_data, "")
|
||||||
return event_data->getName().buffer();
|
return event_data->getName().buffer();
|
||||||
|
|||||||
@ -44,7 +44,6 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SpineEventData();
|
SpineEventData();
|
||||||
~SpineEventData();
|
|
||||||
|
|
||||||
void set_spine_object(spine::EventData *_event_data) { event_data = _event_data; }
|
void set_spine_object(spine::EventData *_event_data) { event_data = _event_data; }
|
||||||
|
|
||||||
|
|||||||
@ -55,9 +55,6 @@ void SpineIkConstraint::_bind_methods() {
|
|||||||
SpineIkConstraint::SpineIkConstraint() : ik_constraint(nullptr) {
|
SpineIkConstraint::SpineIkConstraint() : ik_constraint(nullptr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SpineIkConstraint::~SpineIkConstraint() {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SpineIkConstraint::update() {
|
void SpineIkConstraint::update() {
|
||||||
SPINE_CHECK(ik_constraint,)
|
SPINE_CHECK(ik_constraint,)
|
||||||
ik_constraint->update();
|
ik_constraint->update();
|
||||||
|
|||||||
@ -46,7 +46,6 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SpineIkConstraint();
|
SpineIkConstraint();
|
||||||
~SpineIkConstraint();
|
|
||||||
|
|
||||||
void set_spine_object(spine::IkConstraint *_ik_constraint) { ik_constraint = _ik_constraint; }
|
void set_spine_object(spine::IkConstraint *_ik_constraint) { ik_constraint = _ik_constraint; }
|
||||||
|
|
||||||
|
|||||||
@ -48,9 +48,6 @@ void SpineIkConstraintData::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("set_softness", "v"), &SpineIkConstraintData::set_softness);
|
ClassDB::bind_method(D_METHOD("set_softness", "v"), &SpineIkConstraintData::set_softness);
|
||||||
}
|
}
|
||||||
|
|
||||||
SpineIkConstraintData::SpineIkConstraintData() {}
|
|
||||||
SpineIkConstraintData::~SpineIkConstraintData() {}
|
|
||||||
|
|
||||||
Array SpineIkConstraintData::get_bones() {
|
Array SpineIkConstraintData::get_bones() {
|
||||||
Array result;
|
Array result;
|
||||||
SPINE_CHECK(constraint_data, result)
|
SPINE_CHECK(constraint_data, result)
|
||||||
|
|||||||
@ -43,9 +43,6 @@ protected:
|
|||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SpineIkConstraintData();
|
|
||||||
~SpineIkConstraintData();
|
|
||||||
|
|
||||||
Array get_bones();
|
Array get_bones();
|
||||||
|
|
||||||
Ref<SpineBoneData> get_target();
|
Ref<SpineBoneData> get_target();
|
||||||
|
|||||||
@ -52,7 +52,8 @@ void SpinePathConstraint::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("set_active", "v"), &SpinePathConstraint::set_active);
|
ClassDB::bind_method(D_METHOD("set_active", "v"), &SpinePathConstraint::set_active);
|
||||||
}
|
}
|
||||||
|
|
||||||
SpinePathConstraint::SpinePathConstraint() : path_constraint(nullptr) {}
|
SpinePathConstraint::SpinePathConstraint() : path_constraint(nullptr) {
|
||||||
|
}
|
||||||
|
|
||||||
void SpinePathConstraint::update() {
|
void SpinePathConstraint::update() {
|
||||||
SPINE_CHECK(path_constraint,)
|
SPINE_CHECK(path_constraint,)
|
||||||
|
|||||||
@ -45,7 +45,6 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
SpinePathConstraint();
|
SpinePathConstraint();
|
||||||
~SpinePathConstraint() = default;
|
|
||||||
|
|
||||||
void set_spine_object(spine::PathConstraint *_path_constraint) { path_constraint = _path_constraint; }
|
void set_spine_object(spine::PathConstraint *_path_constraint) { path_constraint = _path_constraint; }
|
||||||
spine::PathConstraint *get_spine_object() { return path_constraint; }
|
spine::PathConstraint *get_spine_object() { return path_constraint; }
|
||||||
|
|||||||
@ -47,9 +47,6 @@ void SpineAnimationMix::_bind_methods() {
|
|||||||
SpineAnimationMix::SpineAnimationMix(): from(""), to(""), mix(0) {
|
SpineAnimationMix::SpineAnimationMix(): from(""), to(""), mix(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
SpineAnimationMix::~SpineAnimationMix() {
|
|
||||||
}
|
|
||||||
|
|
||||||
void SpineAnimationMix::set_from(const StringName &from) {
|
void SpineAnimationMix::set_from(const StringName &from) {
|
||||||
this->from = from;
|
this->from = from;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,6 @@ protected:
|
|||||||
float mix;
|
float mix;
|
||||||
public:
|
public:
|
||||||
SpineAnimationMix();
|
SpineAnimationMix();
|
||||||
~SpineAnimationMix();
|
|
||||||
|
|
||||||
void set_from(const StringName &from);
|
void set_from(const StringName &from);
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,6 @@ protected:
|
|||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Array get_bones();
|
Array get_bones();
|
||||||
|
|
||||||
Ref<SpineBoneData> get_target();
|
Ref<SpineBoneData> get_target();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user