CheatMenuSA/src/animation.h

48 lines
1.7 KiB
C
Raw Normal View History

2021-08-09 14:26:49 -04:00
#ifdef GTASA
2020-12-02 16:19:16 -05:00
#pragma once
2021-07-25 08:29:01 -04:00
#include "pch.h"
class Animation
2020-12-02 16:19:16 -05:00
{
private:
2021-10-24 18:08:00 -04:00
// Animation player
static inline ResourceStore m_AnimData{"animation", eResourceType::TYPE_TEXT};
static inline char m_nAnimBuffer[INPUT_BUFFER_SIZE];
static inline char m_nIfpBuffer[INPUT_BUFFER_SIZE];
static inline bool m_Loop; // loop animation
static inline bool m_bSecondary; // play animation as secondary
2021-09-20 08:41:40 -04:00
2021-10-24 18:08:00 -04:00
// Cutscene player
struct m_Cutscene
{
static inline ResourceStore m_Data{"cutscene", eResourceType::TYPE_TEXT};
static inline std::string m_SceneName;
static inline int m_nInterior; // player interior backup
static inline bool m_bRunning;
};
2021-09-20 08:41:40 -04:00
2021-10-24 18:08:00 -04:00
static inline int m_nFightingStyle;
static inline std::string m_nWalkingStyle = "default";
static inline std::vector<std::string> m_FightingStyleList = {"Default", "Boxing", "Kung fu", "Kick Boxing",
"Punch Kick"};
static inline std::vector<std::string> m_WalkingStyleList = {
"default", "man", "shuffle", "oldman", "gang1", "gang2", "oldfatman", "fatman",
"jogger", "drunkman", "blindman", "swat", "woman", "shopping", "busywoman", "sexywoman",
"pro", "oldwoman", "fatwoman", "jogwoman", "oldfatwoman", "skate"};
2020-12-02 16:19:16 -05:00
protected:
2021-10-24 18:08:00 -04:00
Animation();
2020-12-02 16:19:16 -05:00
public:
2021-10-24 18:08:00 -04:00
static void Draw();
static void PlayAnimation(std::string &rootKey, std::string &anim, std::string &ifp);
static void PlayCutscene(std::string &rootKey, std::string &cutsceneId, std::string &interior);
static void RemoveAnimation(std::string &rootKey, std::string &anim, std::string &ifp);
2020-12-02 16:19:16 -05:00
};
2021-08-09 14:26:49 -04:00
#else
2021-10-21 18:23:02 -04:00
// Dummy Class for VC & III
2021-10-24 18:08:00 -04:00
class Animation
{
};
2021-08-09 14:26:49 -04:00
#endif