29 lines
619 B
C++
29 lines
619 B
C++
#ifndef CTWEAKMANAGER_H
|
|
#define CTWEAKMANAGER_H
|
|
|
|
#include "CTweakData.h"
|
|
|
|
/** Class responsible for managing game tweak data, including saving/loading and providing access */
|
|
class CTweakManager
|
|
{
|
|
/** Project */
|
|
CGameProject* mpProject;
|
|
|
|
/** All tweak resources in the current game */
|
|
std::vector< CTweakData* > mTweakObjects;
|
|
|
|
public:
|
|
CTweakManager(CGameProject* pInProject);
|
|
~CTweakManager();
|
|
void LoadTweaks();
|
|
bool SaveTweaks();
|
|
|
|
// Accessors
|
|
inline const std::vector<CTweakData*>& TweakObjects() const
|
|
{
|
|
return mTweakObjects;
|
|
}
|
|
};
|
|
|
|
#endif // CTWEAKMANAGER_H
|