2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-10-26 05:37:46 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/IFactory.hpp"
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
2017-10-26 05:37:46 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2017-10-26 05:37:46 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class MP1OriginalIDs {
|
|
|
|
std::vector<std::pair<CAssetId, CAssetId>> m_origToNew;
|
|
|
|
std::vector<std::pair<CAssetId, CAssetId>> m_newToOrig;
|
2017-10-26 05:37:46 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
MP1OriginalIDs(CInputStream& in);
|
|
|
|
CAssetId TranslateOriginalToNew(CAssetId id) const;
|
|
|
|
CAssetId TranslateNewToOriginal(CAssetId id) const;
|
2017-10-26 05:37:46 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CFactoryFnReturn FMP1OriginalIDsFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& param,
|
2017-10-26 05:37:46 +00:00
|
|
|
CObjectReference* selfRef);
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|