mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2025-02-20 03:52:44 +01:00

# Conflicts: # src/animation/AnimBlendAssociation.h # src/animation/AnimBlendClumpData.h # src/animation/AnimManager.h # src/animation/FrameUpdate.cpp # src/control/AutoPilot.h # src/control/PathFind.h # src/core/PlayerInfo.h # src/entities/Building.h # src/entities/Dummy.h # src/entities/Entity.h # src/entities/Physical.h # src/entities/Treadable.h # src/modelinfo/BaseModelInfo.h # src/modelinfo/ClumpModelInfo.cpp # src/modelinfo/ClumpModelInfo.h # src/modelinfo/PedModelInfo.h # src/modelinfo/SimpleModelInfo.h # src/modelinfo/TimeModelInfo.h # src/modelinfo/VehicleModelInfo.h # src/objects/CutsceneHead.h # src/objects/CutsceneObject.h # src/objects/DummyObject.h # src/objects/Object.h # src/peds/DummyPed.h # src/peds/PedIK.cpp # src/rw/VisibilityPlugins.cpp # src/vehicles/Automobile.h # src/vehicles/Boat.h # src/vehicles/Heli.h # src/vehicles/Plane.h # src/vehicles/Train.h # src/vehicles/Vehicle.h
51 lines
892 B
C++
51 lines
892 B
C++
#pragma once
|
|
|
|
#include "AnimBlendList.h"
|
|
|
|
|
|
// TODO: put somewhere else
|
|
struct AnimBlendFrameData
|
|
{
|
|
enum {
|
|
IGNORE_ROTATION = 2,
|
|
IGNORE_TRANSLATION = 4,
|
|
VELOCITY_EXTRACTION = 8,
|
|
VELOCITY_EXTRACTION_3D = 0x10,
|
|
UPDATE_KEYFRAMES = 0x20,
|
|
};
|
|
|
|
uint8 flag;
|
|
RwV3d resetPos;
|
|
#ifdef PED_SKIN
|
|
union {
|
|
RwFrame *frame;
|
|
RpHAnimStdKeyFrame *hanimFrame;
|
|
};
|
|
int32 nodeID;
|
|
#else
|
|
RwFrame *frame;
|
|
#endif
|
|
};
|
|
#ifndef PED_SKIN
|
|
VALIDATE_SIZE(AnimBlendFrameData, 0x14);
|
|
#endif
|
|
|
|
|
|
class CAnimBlendClumpData
|
|
{
|
|
public:
|
|
CAnimBlendLink link;
|
|
int32 numFrames;
|
|
CVector *velocity;
|
|
// order of frames is determined by RW hierarchy
|
|
AnimBlendFrameData *frames;
|
|
|
|
CAnimBlendClumpData(void);
|
|
~CAnimBlendClumpData(void);
|
|
void SetNumberOfFrames(int n);
|
|
#ifdef PED_SKIN
|
|
void SetNumberOfBones(int n) { SetNumberOfFrames(n); }
|
|
#endif
|
|
void ForAllFrames(void (*cb)(AnimBlendFrameData*, void*), void *arg);
|
|
};
|