-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnimationFile.h
More file actions
35 lines (30 loc) · 889 Bytes
/
Copy pathAnimationFile.h
File metadata and controls
35 lines (30 loc) · 889 Bytes
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
#pragma once
#include <memory>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <cstdint>
#include "ninja.h"
class AnimationFile
{
public:
AnimationFile(const char *filename);
AnimationFile(const wchar_t *filename);
AnimationFile(const std::string &filename);
AnimationFile(const std::wstring &filename);
AnimationFile(std::istream &stream);
NJS_MOTION *getmotion() const;
int getmodelcount() const;
const std::string &getlabel() const;
private:
static const uint64_t SAANIM = 0x4D494E414153u;
static const uint64_t FormatMask = 0xFFFFFFFFFFFFu;
static const uint8_t CurrentVersion = 1;
static const int headersize = 0x14;
NJS_MOTION *motion;
int modelcount;
std::string label;
std::vector<std::shared_ptr<void>> allocatedmem;
std::unordered_set<void *> fixedpointers;
void init(std::istream &stream);
};