8 ,
public Toshi::TSingleton<AModelRepos>
13 using ModelsMap = Toshi::T2Map<Toshi::TPString8, AModel*, Toshi::TPString8::Comparator>;
28 void LoadModel(
const Toshi::TPString8& a_rcName, Toshi::TTRB* a_pTRB );
38 AModel* AllocateAModel(
const Toshi::TPString8& a_rcName, Toshi::TTRB* a_pTRB );
40 void MarkAllModelsUnused();
41 void MarkModelUnused(
AModel* a_pModel );
AModel * GetUnusedModel(const Toshi::TPString8 &a_rName)
void Update(TFLOAT a_fDeltaTime)
AModelInstance * InstantiateNewModel(const Toshi::TPString8 &a_rName, Toshi::TTRB *a_pTRB)
void LoadModel(const Toshi::TPString8 &a_rcName, Toshi::TTRB *a_pTRB)
Toshi::T2Map< Toshi::TPString8, AModel *, Toshi::TPString8::Comparator > ModelsMap
AModelInstance * InstantiateModel(AModel *a_pModel)
Toshi::T2DList< AModel > m_UnusedModels
TDECLARE_CLASS(AModelRepos, Toshi::TObject)
void UnloadUnusedModels()
void UnloadModel(const Toshi::TPString8 &a_rcName, TBOOL a_bDestroy)
void DestroyModelInstance(AModelInstance *a_pInstance)
static constexpr TSIZE MAX_UNUSED_MODELS_NUM
void RenderModels(TUINT a_uiMask)
AModel * GetModel(const Toshi::TPString8 &a_rcName)