mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[cpp] 4.3 porting WIP
This commit is contained in:
parent
3a2c986e2b
commit
f92576bbe9
@ -40,7 +40,7 @@ namespace spine {
|
|||||||
class Skeleton;
|
class Skeleton;
|
||||||
|
|
||||||
class SP_API Constraint : public Update {
|
class SP_API Constraint : public Update {
|
||||||
RTTI_DECL_NOPARENT
|
RTTI_DECL
|
||||||
friend class Skeleton;
|
friend class Skeleton;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -62,7 +62,7 @@ namespace spine {
|
|||||||
ConstraintDataGeneric(const String &name) : PosedDataGeneric<P>(name), ConstraintData(name) {}
|
ConstraintDataGeneric(const String &name) : PosedDataGeneric<P>(name), ConstraintData(name) {}
|
||||||
virtual ~ConstraintDataGeneric() {}
|
virtual ~ConstraintDataGeneric() {}
|
||||||
|
|
||||||
virtual Constraint* create(Skeleton& skeleton) = 0;
|
virtual Constraint* create(Skeleton& skeleton) override = 0;
|
||||||
|
|
||||||
// Resolve ambiguity by forwarding to PosedData's implementation
|
// Resolve ambiguity by forwarding to PosedData's implementation
|
||||||
virtual const String &getName() const override { return PosedDataGeneric<P>::getName(); }
|
virtual const String &getName() const override { return PosedDataGeneric<P>::getName(); }
|
||||||
|
|||||||
@ -81,7 +81,7 @@ namespace spine {
|
|||||||
|
|
||||||
void setSlot(Slot *slot);
|
void setSlot(Slot *slot);
|
||||||
|
|
||||||
PathConstraintData &getData();
|
virtual PathConstraintData &getData() override;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
using namespace spine;
|
using namespace spine;
|
||||||
|
|
||||||
|
RTTI_IMPL(Constraint, Update)
|
||||||
|
|
||||||
Constraint::Constraint() {
|
Constraint::Constraint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user