mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 00:27:42 +00:00
Resource factories now provided with self-ref
This commit is contained in:
@@ -18,7 +18,8 @@ namespace urde
|
||||
{
|
||||
|
||||
CFactoryFnReturn CCharacterFactory::CDummyFactory::Build(const SObjectTag& tag,
|
||||
const CVParamTransfer& params)
|
||||
const CVParamTransfer& params,
|
||||
CObjectReference* selfRef)
|
||||
{
|
||||
|
||||
const CCharacterInfo& charInfo =
|
||||
@@ -49,9 +50,10 @@ CFactoryFnReturn CCharacterFactory::CDummyFactory::Build(const SObjectTag& tag,
|
||||
|
||||
void CCharacterFactory::CDummyFactory::BuildAsync(const SObjectTag& tag,
|
||||
const CVParamTransfer& parms,
|
||||
IObj** objOut)
|
||||
IObj** objOut,
|
||||
CObjectReference* selfRef)
|
||||
{
|
||||
*objOut = Build(tag, parms).release();
|
||||
*objOut = Build(tag, parms, selfRef).release();
|
||||
}
|
||||
|
||||
void CCharacterFactory::CDummyFactory::CancelBuild(const SObjectTag&)
|
||||
|
||||
Reference in New Issue
Block a user