mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +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() {
|
||||
}
|
||||
|
||||
String SpineAnimation::get_name() {
|
||||
SPINE_CHECK(animation, "")
|
||||
return animation->getName().buffer();
|
||||
|
||||
@ -49,10 +49,9 @@ protected:
|
||||
|
||||
public:
|
||||
SpineAnimation();
|
||||
~SpineAnimation();
|
||||
|
||||
void set_spine_object(spine::Animation *animation) { this->animation = animation; }
|
||||
|
||||
|
||||
spine::Animation *get_spine_object() { return animation; }
|
||||
|
||||
void apply(Ref<SpineSkeleton> skeleton, float last_time, float time, bool loop, Array events, float alpha, SpineConstant::MixBlend blend, SpineConstant::MixDirection direction);
|
||||
|
||||
@ -101,8 +101,6 @@ void SpineBone::_bind_methods() {
|
||||
|
||||
SpineBone::SpineBone() : bone(nullptr), sprite(nullptr) {}
|
||||
|
||||
SpineBone::~SpineBone() {}
|
||||
|
||||
void SpineBone::set_spine_sprite(SpineSprite* _sprite) {
|
||||
this->sprite = _sprite;
|
||||
}
|
||||
|
||||
@ -49,7 +49,6 @@ private:
|
||||
|
||||
public:
|
||||
SpineBone();
|
||||
~SpineBone();
|
||||
|
||||
void set_spine_object(spine::Bone *_bone) { bone = _bone; }
|
||||
|
||||
|
||||
@ -61,9 +61,6 @@ void SpineBoneData::_bind_methods() {
|
||||
SpineBoneData::SpineBoneData() : bone_data(nullptr) {
|
||||
}
|
||||
|
||||
SpineBoneData::~SpineBoneData() {
|
||||
}
|
||||
|
||||
int SpineBoneData::get_index() {
|
||||
SPINE_CHECK(bone_data, 0)
|
||||
return bone_data->getIndex();
|
||||
|
||||
@ -45,7 +45,6 @@ private:
|
||||
|
||||
public:
|
||||
SpineBoneData();
|
||||
~SpineBoneData();
|
||||
|
||||
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() {
|
||||
}
|
||||
|
||||
String SpineConstraintData::get_constraint_name() {
|
||||
SPINE_CHECK(constraint_data, "")
|
||||
return constraint_data->getName().buffer();
|
||||
|
||||
@ -41,17 +41,16 @@ class SpineConstraintData : public Reference {
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
|
||||
spine::ConstraintData *constraint_data;
|
||||
|
||||
public:
|
||||
SpineConstraintData();
|
||||
~SpineConstraintData();
|
||||
|
||||
void set_spine_object(spine::ConstraintData *_constraint_data) {
|
||||
constraint_data = _constraint_data;
|
||||
}
|
||||
|
||||
|
||||
spine::ConstraintData *get_spine_object() {
|
||||
return constraint_data;
|
||||
}
|
||||
@ -59,11 +58,11 @@ public:
|
||||
String get_constraint_name();
|
||||
|
||||
uint64_t get_order();
|
||||
|
||||
|
||||
void set_order(uint64_t v);
|
||||
|
||||
bool is_skin_required();
|
||||
|
||||
|
||||
void set_skin_required(bool v);
|
||||
};
|
||||
|
||||
|
||||
@ -115,8 +115,7 @@ class SpineEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(SpineEditorPlugin, EditorPlugin)
|
||||
|
||||
public:
|
||||
SpineEditorPlugin(EditorNode *node);
|
||||
~SpineEditorPlugin();
|
||||
explicit SpineEditorPlugin(EditorNode *node);
|
||||
|
||||
String get_name() const override { return "SpineEditorPlugin"; }
|
||||
|
||||
|
||||
@ -48,9 +48,6 @@ void SpineEvent::_bind_methods() {
|
||||
SpineEvent::SpineEvent() : event(nullptr) {
|
||||
}
|
||||
|
||||
SpineEvent::~SpineEvent() {
|
||||
}
|
||||
|
||||
Ref<SpineEventData> SpineEvent::get_data() {
|
||||
SPINE_CHECK(event, nullptr)
|
||||
Ref<SpineEventData> event_data(memnew(SpineEventData));
|
||||
|
||||
@ -45,34 +45,33 @@ private:
|
||||
|
||||
public:
|
||||
SpineEvent();
|
||||
~SpineEvent();
|
||||
|
||||
void set_spine_object(spine::Event *_event) { event = _event; }
|
||||
|
||||
spine::Event *get_spine_object() const { return event; }
|
||||
|
||||
|
||||
Ref<SpineEventData> get_data();
|
||||
|
||||
float get_time();
|
||||
|
||||
int get_int_value();
|
||||
|
||||
|
||||
void set_int_value(int v);
|
||||
|
||||
float get_float_value();
|
||||
|
||||
|
||||
void set_float_value(float v);
|
||||
|
||||
String get_string_value();
|
||||
|
||||
|
||||
void set_string_value(const String &v);
|
||||
|
||||
float get_volume();
|
||||
|
||||
|
||||
void set_volume(float v);
|
||||
|
||||
float get_balance();
|
||||
|
||||
|
||||
void set_balance(float v);
|
||||
};
|
||||
|
||||
|
||||
@ -47,9 +47,6 @@ void SpineEventData::_bind_methods() {
|
||||
SpineEventData::SpineEventData() : event_data(nullptr) {
|
||||
}
|
||||
|
||||
SpineEventData::~SpineEventData() {
|
||||
}
|
||||
|
||||
String SpineEventData::get_event_name() {
|
||||
SPINE_CHECK(event_data, "")
|
||||
return event_data->getName().buffer();
|
||||
|
||||
@ -44,7 +44,6 @@ private:
|
||||
|
||||
public:
|
||||
SpineEventData();
|
||||
~SpineEventData();
|
||||
|
||||
void set_spine_object(spine::EventData *_event_data) { event_data = _event_data; }
|
||||
|
||||
@ -53,23 +52,23 @@ public:
|
||||
String get_event_name();
|
||||
|
||||
int get_int_value();
|
||||
|
||||
|
||||
void set_int_value(int v);
|
||||
|
||||
float get_float_value();
|
||||
|
||||
|
||||
void set_float_value(float v);
|
||||
|
||||
String get_string_value();
|
||||
|
||||
|
||||
void set_string_value(const String &v);
|
||||
|
||||
float get_volume();
|
||||
|
||||
|
||||
void set_volume(float v);
|
||||
|
||||
float get_balance();
|
||||
|
||||
|
||||
void set_balance(float v);
|
||||
};
|
||||
|
||||
|
||||
@ -55,9 +55,6 @@ void SpineIkConstraint::_bind_methods() {
|
||||
SpineIkConstraint::SpineIkConstraint() : ik_constraint(nullptr) {
|
||||
}
|
||||
|
||||
SpineIkConstraint::~SpineIkConstraint() {
|
||||
}
|
||||
|
||||
void SpineIkConstraint::update() {
|
||||
SPINE_CHECK(ik_constraint,)
|
||||
ik_constraint->update();
|
||||
|
||||
@ -46,12 +46,11 @@ private:
|
||||
|
||||
public:
|
||||
SpineIkConstraint();
|
||||
~SpineIkConstraint();
|
||||
|
||||
void set_spine_object(spine::IkConstraint *_ik_constraint) { ik_constraint = _ik_constraint; }
|
||||
|
||||
spine::IkConstraint *get_spine_object() { return ik_constraint; }
|
||||
|
||||
|
||||
void update();
|
||||
|
||||
int get_order();
|
||||
@ -61,31 +60,31 @@ public:
|
||||
Array get_bones();
|
||||
|
||||
Ref<SpineBone> get_target();
|
||||
|
||||
|
||||
void set_target(Ref<SpineBone> v);
|
||||
|
||||
int get_bend_direction();
|
||||
|
||||
|
||||
void set_bend_direction(int v);
|
||||
|
||||
bool get_compress();
|
||||
|
||||
|
||||
void set_compress(bool v);
|
||||
|
||||
bool get_stretch();
|
||||
|
||||
|
||||
void set_stretch(bool v);
|
||||
|
||||
float get_mix();
|
||||
|
||||
|
||||
void set_mix(float v);
|
||||
|
||||
float get_softness();
|
||||
|
||||
|
||||
void set_softness(float v);
|
||||
|
||||
bool is_active();
|
||||
|
||||
|
||||
void set_active(bool v);
|
||||
};
|
||||
|
||||
|
||||
@ -48,9 +48,6 @@ void SpineIkConstraintData::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_softness", "v"), &SpineIkConstraintData::set_softness);
|
||||
}
|
||||
|
||||
SpineIkConstraintData::SpineIkConstraintData() {}
|
||||
SpineIkConstraintData::~SpineIkConstraintData() {}
|
||||
|
||||
Array SpineIkConstraintData::get_bones() {
|
||||
Array result;
|
||||
SPINE_CHECK(constraint_data, result)
|
||||
|
||||
@ -43,9 +43,6 @@ protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
SpineIkConstraintData();
|
||||
~SpineIkConstraintData();
|
||||
|
||||
Array get_bones();
|
||||
|
||||
Ref<SpineBoneData> get_target();
|
||||
|
||||
@ -52,7 +52,8 @@ void SpinePathConstraint::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_active", "v"), &SpinePathConstraint::set_active);
|
||||
}
|
||||
|
||||
SpinePathConstraint::SpinePathConstraint() : path_constraint(nullptr) {}
|
||||
SpinePathConstraint::SpinePathConstraint() : path_constraint(nullptr) {
|
||||
}
|
||||
|
||||
void SpinePathConstraint::update() {
|
||||
SPINE_CHECK(path_constraint,)
|
||||
|
||||
@ -45,7 +45,6 @@ private:
|
||||
|
||||
public:
|
||||
SpinePathConstraint();
|
||||
~SpinePathConstraint() = default;
|
||||
|
||||
void set_spine_object(spine::PathConstraint *_path_constraint) { path_constraint = _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() {
|
||||
}
|
||||
|
||||
void SpineAnimationMix::set_from(const StringName &from) {
|
||||
this->from = from;
|
||||
}
|
||||
|
||||
@ -23,7 +23,6 @@ protected:
|
||||
float mix;
|
||||
public:
|
||||
SpineAnimationMix();
|
||||
~SpineAnimationMix();
|
||||
|
||||
void set_from(const StringName &from);
|
||||
|
||||
|
||||
@ -43,7 +43,6 @@ protected:
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
|
||||
Array get_bones();
|
||||
|
||||
Ref<SpineBoneData> get_target();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user