geode/loader/include/Geode/ui/SceneManager.hpp

29 lines
541 B
C++
Raw Normal View History

#pragma once
#include "../DefaultInclude.hpp"
#include <cocos2d.h>
2022-10-13 05:56:23 -04:00
namespace cocos2d {
class CCArray;
class CCNode;
}
namespace geode {
class GEODE_DLL SceneManager {
protected:
cocos2d::CCArray* m_persistedNodes;
bool setup();
virtual ~SceneManager();
public:
static SceneManager* get();
void keepAcrossScenes(cocos2d::CCNode* node);
void forget(cocos2d::CCNode* node);
void willSwitchToScene(cocos2d::CCScene* scene);
};
}