Plasma Engine  2.0
Loading...
Searching...
No Matches
BoneWeightsSwitchAnimNode.h
1#pragma once
2
3#include <RendererCore/AnimationSystem/AnimGraph/AnimGraphNode.h>
4
5class PL_RENDERERCORE_DLL plSwitchBoneWeightsAnimNode : public plAnimGraphNode
6{
7 PL_ADD_DYNAMIC_REFLECTION(plSwitchBoneWeightsAnimNode, plAnimGraphNode);
8
10 // plAnimGraphNode
11
12protected:
13 virtual plResult SerializeNode(plStreamWriter& stream) const override;
14 virtual plResult DeserializeNode(plStreamReader& stream) override;
15
16 virtual void Step(plAnimController& ref_controller, plAnimGraphInstance& ref_graph, plTime tDiff, const plSkeletonResource* pSkeleton, plGameObject* pTarget) const override;
17
19 // plSwitchBoneWeightsAnimNode
20
21private:
22 plAnimGraphNumberInputPin m_InIndex; // [ property ]
23 plUInt8 m_uiWeightsCount = 0; // [ property ]
24 plHybridArray<plAnimGraphBoneWeightsInputPin, 2> m_InWeights; // [ property ]
25 plAnimGraphBoneWeightsOutputPin m_OutWeights; // [ property ]
26};
Definition AnimController.h:52
Definition AnimGraphPins.h:162
Definition AnimGraphInstance.h:15
Base class for all nodes in an plAnimGraphInstance.
Definition AnimGraphNode.h:36
Definition AnimGraphPins.h:108
This class represents an object inside the world.
Definition GameObject.h:32
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
Definition SkeletonResource.h:47
Interface for binary in (read) streams.
Definition Stream.h:22
Interface for binary out (write) streams.
Definition Stream.h:107
Definition BoneWeightsSwitchAnimNode.h:6
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54
The time class encapsulates a double value storing the time in seconds.
Definition Time.h:12