genesis-3d_engine/Engine/app/appframework/editstatus.h
zhongdaohuan 6e8fbca745 genesis-3d engine version 1.3.
match the genesis editor version 1.3.0.653.
2014-05-05 14:50:33 +08:00

37 lines
519 B
C++

#ifndef __editstatus_H__
#define __editstatus_H__
#ifdef __GENESIS_EDITOR__
# define __EDIT_STATUS__ 1
#else
# define __EDIT_STATUS__ 0
#endif
#if __EDIT_STATUS__
namespace App
{
class EditStatus
{
public:
static bool IsPlayingGame();
static void SetPlayingGame(bool play);
private:
static bool bPlayingGame;
};
inline bool EditStatus::IsPlayingGame()
{
return bPlayingGame;
}
inline void EditStatus::SetPlayingGame(bool play)
{
bPlayingGame = play;
}
}
#endif
#endif //__editstatus_H__