mirror of https://github.com/AxioDL/metaforce.git
CAnimSysContext: std::move TToken instance in constructor
Provides the same interface, but allows for calling code to move into the constructor.
This commit is contained in:
parent
280e4ce07d
commit
3cec19437a
|
@ -15,8 +15,8 @@ struct CAnimSysContext {
|
|||
std::shared_ptr<CRandom16> x8_random;
|
||||
CSimplePool& xc_store;
|
||||
|
||||
CAnimSysContext(const TToken<CTransitionDatabaseGame>& transDB, u32 randomSeed, CSimplePool& store)
|
||||
: x0_transDB(transDB), x8_random(std::make_shared<CRandom16>(randomSeed)), xc_store(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
|
||||
|
|
Loading…
Reference in New Issue