2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-02-05 01:27:03 +00:00
|
|
|
|
2019-09-23 19:00:23 +00:00
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/IOStreams.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2016-02-05 01:27:03 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
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
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CSpawnSystemKeyframeData {
|
2016-02-11 06:58:33 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
class CSpawnSystemKeyframeInfo {
|
|
|
|
friend class CSpawnSystemKeyframeData;
|
|
|
|
u32 x0_id;
|
2016-02-11 06:58:33 +00:00
|
|
|
u32 x4;
|
2018-12-08 05:30:43 +00:00
|
|
|
u32 x8;
|
2016-02-11 06:58:33 +00:00
|
|
|
u32 xc;
|
2018-12-08 05:30:43 +00:00
|
|
|
TLockedToken<CGenDescription> x10_token;
|
|
|
|
bool x18_found = false;
|
|
|
|
void LoadToken(CSimplePool* pool);
|
|
|
|
|
|
|
|
public:
|
2020-03-26 01:25:11 +00:00
|
|
|
explicit CSpawnSystemKeyframeInfo(CInputStream& in);
|
2018-12-08 05:30:43 +00:00
|
|
|
TLockedToken<CGenDescription>& GetToken() { return x10_token; }
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
u32 x0;
|
|
|
|
u32 x4;
|
|
|
|
u32 x8_endFrame;
|
|
|
|
u32 xc;
|
|
|
|
std::vector<std::pair<u32, std::vector<CSpawnSystemKeyframeInfo>>> x10_spawns;
|
|
|
|
|
2016-02-05 01:27:03 +00:00
|
|
|
public:
|
2020-03-26 01:25:11 +00:00
|
|
|
explicit CSpawnSystemKeyframeData(CInputStream& in);
|
2018-12-08 05:30:43 +00:00
|
|
|
void LoadAllSpawnedSystemTokens(CSimplePool* pool);
|
|
|
|
std::vector<CSpawnSystemKeyframeInfo>& GetSpawnedSystemsAtFrame(u32 frame);
|
2016-02-05 01:27:03 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|