mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
23 lines
538 B
C++
23 lines
538 B
C++
#pragma once
|
|
|
|
#include "AssetLoading/IZoneAssetLoaderState.h"
|
|
|
|
#include <string>
|
|
#include <unordered_set>
|
|
|
|
class LocalizeReadingZoneState final : public IZoneAssetLoaderState
|
|
{
|
|
public:
|
|
/**
|
|
* Checks whether a localize key was already added.
|
|
* Inserts key if it was not added yet.
|
|
*
|
|
* \param key The key to check
|
|
* \returns \c true if key was not duplicated yet, \c false otherwise
|
|
*/
|
|
bool DoLocalizeEntryDuplicateCheck(const std::string& key);
|
|
|
|
private:
|
|
std::unordered_set<std::string> m_keys;
|
|
};
|