This repository was archived by the owner on Dec 10, 2022. It is now read-only.
forked from ataulien/ZenLib
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathzCModelPrototype.h
63 lines (54 loc) · 1.45 KB
/
zCModelPrototype.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#pragma once
#include <vector>
#include "zTypes.h"
#include "utils/mathlib.h"
namespace VDFS
{
class FileIndex;
}
namespace ZenLoad
{
class ZenParser;
class zCModelPrototype
{
public:
struct Animation
{
std::string animationName;
unsigned int layer;
std::string nextAnimation;
float blendIn, blendOut;
enum Flags
{
MoveObject = 1,
RotateObject = 2,
WaitEnd = 4,
Fly = 8,
Idle = 16
};
unsigned int flags;
std::string ascName;
bool aniReversed;
int startFrame, endFrame;
};
zCModelPrototype() {}
/**
* @brief Loads the mesh from the given VDF-Archive
*/
zCModelPrototype(const std::string& fileName, const VDFS::FileIndex& fileIndex);
/**
* @brief Reads the mesh-object from the given binary stream
* @param fromZen Whether this mesh is supposed to be read from a zenfile. In this case, information about the binary chunk is also read.
*/
void readObjectData(ZenParser& parser);
/**
* @return List of animations registered here
*/
std::vector<Animation> getAnimations()
{
return m_Animations;
}
private:
std::vector<Animation> m_Animations;
};
} // namespace ZenLoad