metaforce/Runtime/Character/CAnimSysContext.hpp

23 lines
596 B
C++
Raw Permalink Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-04-12 23:07:23 -07:00
#include <memory>
#include "Runtime/CRandom16.hpp"
#include "Runtime/CToken.hpp"
#include "Runtime/GCNTypes.hpp"
2020-04-19 18:09:30 -07:00
#include "Runtime/Character/CTransitionDatabaseGame.hpp"
2016-04-12 23:07:23 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2016-04-12 23:07:23 -07:00
class CSimplePool;
2018-12-07 21:30:43 -08:00
struct CAnimSysContext {
TToken<CTransitionDatabaseGame> x0_transDB;
std::shared_ptr<CRandom16> x8_random;
CSimplePool& xc_store;
2016-04-12 23:07:23 -07:00
CAnimSysContext(TToken<CTransitionDatabaseGame> transDB, u32 randomSeed, CSimplePool& store)
: x0_transDB(std::move(transDB)), x8_random(std::make_shared<CRandom16>(randomSeed)), xc_store(store) {}
2016-04-12 23:07:23 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce