mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 09:55:34 -05:00
22 lines
451 B
C++
22 lines
451 B
C++
#pragma once
|
|
|
|
#include <Geode/Bindings.hpp>
|
|
|
|
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);
|
|
};
|
|
}
|