2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-03-26 00:51:59 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include "Editor/ProjectResourceFactoryBase.hpp"
|
|
|
|
#include "Runtime/CToken.hpp"
|
2016-03-26 00:51:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2017-01-31 05:01:40 +00:00
|
|
|
class MP1OriginalIDs;
|
|
|
|
class CSimplePool;
|
2016-03-26 00:51:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class ProjectResourceFactoryMP1 : public ProjectResourceFactoryBase {
|
|
|
|
TLockedToken<MP1OriginalIDs> m_origIds;
|
|
|
|
|
2016-03-26 00:51:59 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
ProjectResourceFactoryMP1(hecl::ClientProcess& clientProc);
|
|
|
|
void IndexMP1Resources(hecl::Database::Project& proj, CSimplePool& sp);
|
|
|
|
void Shutdown();
|
2017-01-31 05:01:40 +00:00
|
|
|
|
2019-08-09 19:46:49 +00:00
|
|
|
CAssetId TranslateOriginalToNew(CAssetId id) const override;
|
|
|
|
CAssetId TranslateNewToOriginal(CAssetId id) const override;
|
2016-03-26 00:51:59 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|