summaryrefslogtreecommitdiff
path: root/ZAPD/ZPlayerAnimationData.h
blob: 2923117efc74682abf53ef4c629367a027e383ce (plain)
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
#pragma once

#include <cstdint>
#include <vector>

#include "ZResource.h"

class ZPlayerAnimationData : public ZResource
{
public:
	int16_t frameCount = 0;
	std::vector<int16_t> limbRotData;

	ZPlayerAnimationData(ZFile* nParent);

	void ParseXML(tinyxml2::XMLElement* reader) override;
	void ParseRawData() override;

	Declaration* DeclareVar(const std::string& prefix, const std::string& bodyStr) override;

	std::string GetBodySourceCode() const override;
	std::string GetDefaultName(const std::string& prefix) const override;

	std::string GetSourceTypeName() const override;
	ZResourceType GetResourceType() const override;

	size_t GetRawDataSize() const override;
};