2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 17:11:22 +00:00
metaforce/Runtime/Character/CAnimSysContext.hpp
Lioncash 3cec19437a CAnimSysContext: std::move TToken instance in constructor
Provides the same interface, but allows for calling code to move into
the constructor.
2020-03-09 11:08:17 -04:00

23 lines
560 B
C++

#pragma once
#include <memory>
#include "Runtime/CRandom16.hpp"
#include "Runtime/CToken.hpp"
#include "Runtime/GCNTypes.hpp"
namespace urde {
class CSimplePool;
class CTransitionDatabaseGame;
struct CAnimSysContext {
TToken<CTransitionDatabaseGame> x0_transDB;
std::shared_ptr<CRandom16> x8_random;
CSimplePool& xc_store;
CAnimSysContext(TToken<CTransitionDatabaseGame> transDB, u32 randomSeed, CSimplePool& store)
: x0_transDB(std::move(transDB)), x8_random(std::make_shared<CRandom16>(randomSeed)), xc_store(store) {}
};
} // namespace urde