2016-04-13 06:07:23 +00:00
|
|
|
#ifndef __URDE_CINGAMETWEAKMANAGERBASE_HPP__
|
|
|
|
#define __URDE_CINGAMETWEAKMANAGERBASE_HPP__
|
2015-08-27 00:23:46 +00:00
|
|
|
|
|
|
|
#include <string>
|
2016-07-24 04:46:32 +00:00
|
|
|
#include <vector>
|
2015-08-27 00:23:46 +00:00
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-27 00:23:46 +00:00
|
|
|
{
|
|
|
|
|
2016-07-24 04:46:32 +00:00
|
|
|
struct CTweakValue
|
|
|
|
{
|
|
|
|
enum class EType
|
|
|
|
{
|
|
|
|
} x0_type;
|
|
|
|
std::string x4_key;
|
|
|
|
std::string x30_str;
|
|
|
|
};
|
|
|
|
|
2015-08-27 00:23:46 +00:00
|
|
|
class CInGameTweakManagerBase
|
|
|
|
{
|
2016-07-24 04:46:32 +00:00
|
|
|
protected:
|
|
|
|
std::vector<CTweakValue> x0_values;
|
2015-08-27 00:23:46 +00:00
|
|
|
public:
|
2016-07-24 04:46:32 +00:00
|
|
|
bool HasTweakValue(const std::string& name) const
|
|
|
|
{
|
|
|
|
for (const CTweakValue& val : x0_values)
|
|
|
|
if (val.x4_key == name)
|
|
|
|
return true;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
const CTweakValue* GetTweakValue(const std::string& name) const
|
|
|
|
{
|
|
|
|
for (const CTweakValue& val : x0_values)
|
|
|
|
if (val.x4_key == name)
|
|
|
|
return &val;
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2015-08-27 00:23:46 +00:00
|
|
|
bool ReadFromMemoryCard(const std::string& name)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-13 06:07:23 +00:00
|
|
|
#endif // __URDE_CINGAMETWEAKMANAGERBASE_HPP__
|