mirror of
https://github.com/rrika/cdcEngineDXHR.git
synced 2024-11-23 05:29:57 +00:00
this engine has both AnimComponent and AnimComponentV2
This commit is contained in:
parent
06554e1c9a
commit
abb3804caf
@ -2,7 +2,7 @@
|
||||
|
||||
namespace cdc { class IAnimGraphNode; }
|
||||
|
||||
class AnimComponent {
|
||||
class AnimComponentV2 {
|
||||
public:
|
||||
cdc::IAnimGraphNode *firstNode = nullptr; // 54
|
||||
};
|
@ -3,7 +3,7 @@
|
||||
|
||||
namespace cdc {
|
||||
|
||||
AnimPipelineNode::AnimPipelineNode(AnimComponent *animComponent, /*uint32_t,*/ uint32_t numInputs, bool addToChain) :
|
||||
AnimPipelineNode::AnimPipelineNode(AnimComponentV2 *animComponent, /*uint32_t,*/ uint32_t numInputs, bool addToChain) :
|
||||
IAnimGraphNode(animComponent, addToChain)
|
||||
{
|
||||
inputs.resize(numInputs);
|
||||
|
@ -10,7 +10,7 @@ class AnimPipelineNode : public IAnimGraphNode {
|
||||
IAnimGraphNode *output; // 1C
|
||||
// uint32_t dword20 = 0;
|
||||
public:
|
||||
AnimPipelineNode(AnimComponent*, /*uint32_t,*/ uint32_t numInputs, bool addToChain);
|
||||
AnimPipelineNode(AnimComponentV2*, /*uint32_t,*/ uint32_t numInputs, bool addToChain);
|
||||
|
||||
void Activate(Instance*, float) override;
|
||||
void Deactivate(Instance*) override;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include "AnimComponent.h"
|
||||
#include "AnimComponentV2.h"
|
||||
|
||||
class Instance;
|
||||
|
||||
@ -12,11 +12,11 @@ struct AnimGraphNodeMethod18Args {
|
||||
|
||||
class IAnimGraphNode {
|
||||
protected:
|
||||
AnimComponent *animComponent; // 4
|
||||
AnimComponentV2 *animComponent; // 4
|
||||
IAnimGraphNode *nextNode = nullptr; // 8
|
||||
IAnimGraphNode *prevNode = nullptr; // C
|
||||
public:
|
||||
IAnimGraphNode(AnimComponent *animComponent, bool addToChain) :
|
||||
IAnimGraphNode(AnimComponentV2 *animComponent, bool addToChain) :
|
||||
animComponent(animComponent)
|
||||
{
|
||||
if (addToChain) {
|
||||
|
26
cdcKit/Animation/Animation.h
Normal file
26
cdcKit/Animation/Animation.h
Normal file
@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
class Instance;
|
||||
|
||||
namespace cdc {
|
||||
|
||||
class AnimComponent;
|
||||
class AnimProcessor;
|
||||
|
||||
struct BlendProcessor { // line 97
|
||||
AnimComponent *animComponent0;
|
||||
uint32_t dword4;
|
||||
uint32_t dword8;
|
||||
float floatC;
|
||||
};
|
||||
|
||||
class AnimComponent { // line 166
|
||||
BlendProcessor blendprocessor; // 0
|
||||
AnimProcessor *processor; // 10
|
||||
uint32_t numProcessors; // 14
|
||||
Instance *instance; // 18
|
||||
uint32_t model; // 1C
|
||||
uint32_t faceFxComponent; // 20
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user