2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:04:55 +00:00

Additional state imps

This commit is contained in:
Jack Andersen
2016-07-23 18:46:32 -10:00
parent 9298ca7b99
commit f10168e824
8 changed files with 296 additions and 47 deletions

View File

@@ -2,13 +2,41 @@
#define __URDE_CINGAMETWEAKMANAGERBASE_HPP__
#include <string>
#include <vector>
namespace urde
{
struct CTweakValue
{
enum class EType
{
} x0_type;
std::string x4_key;
std::string x30_str;
};
class CInGameTweakManagerBase
{
protected:
std::vector<CTweakValue> x0_values;
public:
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;
}
bool ReadFromMemoryCard(const std::string& name)
{
return true;