2016-04-12 23:07:23 -07:00
|
|
|
#ifndef __URDE_CINGAMETWEAKMANAGERBASE_HPP__
|
|
|
|
#define __URDE_CINGAMETWEAKMANAGERBASE_HPP__
|
2015-08-26 17:23:46 -07:00
|
|
|
|
|
|
|
#include <string>
|
2016-07-23 21:46:32 -07:00
|
|
|
#include <vector>
|
2015-08-26 17:23:46 -07:00
|
|
|
|
2016-03-04 15:04:53 -08:00
|
|
|
namespace urde
|
2015-08-26 17:23:46 -07:00
|
|
|
{
|
|
|
|
|
2016-07-23 21:46:32 -07:00
|
|
|
struct CTweakValue
|
|
|
|
{
|
|
|
|
enum class EType
|
|
|
|
{
|
|
|
|
} x0_type;
|
|
|
|
std::string x4_key;
|
|
|
|
std::string x30_str;
|
|
|
|
};
|
|
|
|
|
2015-08-26 17:23:46 -07:00
|
|
|
class CInGameTweakManagerBase
|
|
|
|
{
|
2016-07-23 21:46:32 -07:00
|
|
|
protected:
|
|
|
|
std::vector<CTweakValue> x0_values;
|
2015-08-26 17:23:46 -07:00
|
|
|
public:
|
2016-07-23 21:46:32 -07: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-26 17:23:46 -07:00
|
|
|
bool ReadFromMemoryCard(const std::string& name)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-12 23:07:23 -07:00
|
|
|
#endif // __URDE_CINGAMETWEAKMANAGERBASE_HPP__
|