mirror of https://github.com/AxioDL/metaforce.git
Add handy TagFromPath shortcut method in ProjectManager
This commit is contained in:
parent
13cb48e3f9
commit
e9a5e4b7f6
|
@ -43,6 +43,8 @@ public:
|
||||||
hecl::Database::Project* project() {return m_proj.get();}
|
hecl::Database::Project* project() {return m_proj.get();}
|
||||||
ProjectResourcePool& objectStore() {return m_objStore;}
|
ProjectResourcePool& objectStore() {return m_objStore;}
|
||||||
ProjectResourceFactoryMP1& resourceFactoryMP1() {return m_factoryMP1;}
|
ProjectResourceFactoryMP1& resourceFactoryMP1() {return m_factoryMP1;}
|
||||||
|
SObjectTag TagFromPath(const hecl::SystemChar* path) const
|
||||||
|
{ return m_factoryMP1.ProjectResourceFactoryBase::TagFromPath(path); }
|
||||||
|
|
||||||
bool newProject(const hecl::SystemString& path);
|
bool newProject(const hecl::SystemString& path);
|
||||||
bool openProject(const hecl::SystemString& path);
|
bool openProject(const hecl::SystemString& path);
|
||||||
|
|
|
@ -29,19 +29,16 @@ URDE_DECL_SPECIALIZE_SHADER(CSpaceWarpFilter)
|
||||||
void ViewManager::BuildTestPART(urde::IObjectStore& objStore)
|
void ViewManager::BuildTestPART(urde::IObjectStore& objStore)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
SObjectTag samusCharSet = m_projManager.resourceFactoryMP1().ProjectResourceFactoryBase::TagFromPath(
|
SObjectTag samusCharSet = m_projManager.TagFromPath(_S("MP1/Shared/ANCS_77289A4A.blend"));
|
||||||
_S("MP1/Shared/ANCS_77289A4A.blend"));
|
SObjectTag platModel = m_projManager.TagFromPath(_S("MP1/Shared/CMDL_6FA561D0.blend"));
|
||||||
SObjectTag platModel = m_projManager.resourceFactoryMP1().ProjectResourceFactoryBase::TagFromPath(
|
SObjectTag bgModel = m_projManager.TagFromPath(_S("MP1/Shared/CMDL_BC34D54C.blend"));
|
||||||
_S("MP1/Shared/CMDL_6FA561D0.blend"));
|
|
||||||
SObjectTag bgModel = m_projManager.resourceFactoryMP1().ProjectResourceFactoryBase::TagFromPath(
|
|
||||||
_S("MP1/Shared/CMDL_BC34D54C.blend"));
|
|
||||||
CAnimRes samusAnimRes(samusCharSet.id, -1, zeus::CVector3f::skOne, -1, true);
|
CAnimRes samusAnimRes(samusCharSet.id, -1, zeus::CVector3f::skOne, -1, true);
|
||||||
g_GameState->GetWorldTransitionManager()->EnableTransition(samusAnimRes,
|
g_GameState->GetWorldTransitionManager()->EnableTransition(samusAnimRes,
|
||||||
platModel.id, zeus::CVector3f::skOne,
|
platModel.id, zeus::CVector3f::skOne,
|
||||||
bgModel.id, zeus::CVector3f::skOne, false);
|
bgModel.id, zeus::CVector3f::skOne, false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SObjectTag areaTag = m_projManager.resourceFactoryMP1().ProjectResourceFactoryBase::TagFromPath(
|
SObjectTag areaTag = m_projManager.TagFromPath(
|
||||||
_S("MP1/Metroid1/!1IntroLevel1027/00 Exterior Docking Hangar/!area.blend"));
|
_S("MP1/Metroid1/!1IntroLevel1027/00 Exterior Docking Hangar/!area.blend"));
|
||||||
auto areaData = m_projManager.resourceFactoryMP1().LoadResourceSync(areaTag);
|
auto areaData = m_projManager.resourceFactoryMP1().LoadResourceSync(areaTag);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue