this engine has both AnimComponent and AnimComponentV2

This commit is contained in:
Adam Jensen 2022-12-09 19:16:12 +00:00
parent 06554e1c9a
commit abb3804caf
5 changed files with 32 additions and 6 deletions

View File

@ -2,7 +2,7 @@
namespace cdc { class IAnimGraphNode; }
class AnimComponent {
class AnimComponentV2 {
public:
cdc::IAnimGraphNode *firstNode = nullptr; // 54
};

View File

@ -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);

View File

@ -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;

View File

@ -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) {

View 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
};
}