mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user