-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTransformation.h
43 lines (36 loc) · 958 Bytes
/
Transformation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <string>
#include <forward_list>
#include "obse/GameForms.h"
#include "obse/GameAPI.h"
enum TransformType {
Transform_Automatic = 0,
Transform_Manual,
Transform_Trigger //Trigger transform manaully, untrasform auto.
};
enum TransformStatus {
StatusNormal = 0,
StatusTransformed,
//These below are valid only in Transform_Manual case
StatusTransform, //TRigger transforming in the mainloop
StatusUnTransform //trigger untrasforming in the mainloop
};
struct Transformation {
std::string name;
TransformType type;
std::string skeletonSubs;
std::string modelSubs; //TODO representing correctly skeleton and animation substitution, and equipment subst
std::forward_list<UInt8> b_controls;
};
struct OldNpc {
std::string old_skeleton;
};
struct TransformNPC{
UInt8 ESPID;
UInt32 RefID;
TESObjectREFR* actorRef;
Transformation* transform;
TransformStatus status;
UInt8 isPlayer;
OldNpc oldNpc;
};
bool InitTransformations();