2016-02-13 09:02:47 +00:00
|
|
|
#ifndef __PSHAG_CSPAWNSYSTEMKEYFRAMEDATA_HPP__
|
|
|
|
#define __PSHAG_CSPAWNSYSTEMKEYFRAMEDATA_HPP__
|
2016-02-05 01:27:03 +00:00
|
|
|
|
|
|
|
#include "IOStreams.hpp"
|
2016-02-11 06:58:33 +00:00
|
|
|
#include "CToken.hpp"
|
2016-02-05 01:27:03 +00:00
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
namespace pshag
|
2016-02-05 01:27:03 +00:00
|
|
|
{
|
|
|
|
class CSimplePool;
|
2016-02-11 06:58:33 +00:00
|
|
|
class CGenDescription;
|
2016-02-05 01:27:03 +00:00
|
|
|
|
|
|
|
class CSpawnSystemKeyframeData
|
|
|
|
{
|
2016-02-11 06:58:33 +00:00
|
|
|
public:
|
|
|
|
class CSpawnSystemKeyframeInfo
|
|
|
|
{
|
|
|
|
friend class CSpawnSystemKeyframeData;
|
|
|
|
u32 x0_id;
|
|
|
|
u32 x4;
|
|
|
|
u32 x8;
|
|
|
|
u32 xc;
|
2016-02-11 22:38:25 +00:00
|
|
|
TLockedToken<CGenDescription> x10_token;
|
2016-02-11 06:58:33 +00:00
|
|
|
bool x18_found = false;
|
|
|
|
void LoadToken(CSimplePool* pool);
|
|
|
|
public:
|
|
|
|
CSpawnSystemKeyframeInfo(CInputStream& in);
|
2016-02-11 22:38:25 +00:00
|
|
|
TLockedToken<CGenDescription>& GetToken() {return x10_token;}
|
2016-02-11 06:58:33 +00:00
|
|
|
};
|
|
|
|
private:
|
|
|
|
u32 x0;
|
|
|
|
u32 x4;
|
2016-02-11 22:38:25 +00:00
|
|
|
u32 x8_endFrame;
|
2016-02-11 06:58:33 +00:00
|
|
|
u32 xc;
|
|
|
|
std::vector<std::pair<u32, std::vector<CSpawnSystemKeyframeInfo>>> x10_spawns;
|
2016-02-05 01:27:03 +00:00
|
|
|
public:
|
|
|
|
CSpawnSystemKeyframeData(CInputStream& in);
|
|
|
|
void LoadAllSpawnedSystemTokens(CSimplePool* pool);
|
2016-02-11 22:38:25 +00:00
|
|
|
std::vector<CSpawnSystemKeyframeInfo>& GetSpawnedSystemsAtFrame(u32 frame);
|
2016-02-05 01:27:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
#endif // __PSHAG_CSPAWNSYSTEMKEYFRAMEDATA_HPP__
|