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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user