mirror of https://github.com/axmolengine/axmol.git
issue #2430:move Configuration enum into class
This commit is contained in:
parent
8dab462f6f
commit
08b13e9867
|
@ -35,15 +35,6 @@ THE SOFTWARE.
|
|||
|
||||
NS_CC_BEGIN
|
||||
|
||||
typedef enum _ccConfigurationType {
|
||||
ConfigurationError,
|
||||
ConfigurationString,
|
||||
ConfigurationInt,
|
||||
ConfigurationDouble,
|
||||
ConfigurationBoolean
|
||||
} ccConfigurationType;
|
||||
|
||||
|
||||
/**
|
||||
* @addtogroup global
|
||||
* @{
|
||||
|
@ -55,6 +46,15 @@ typedef enum _ccConfigurationType {
|
|||
class CC_DLL Configuration : public Object
|
||||
{
|
||||
public:
|
||||
enum Type
|
||||
{
|
||||
ERROR,
|
||||
STRING,
|
||||
INT,
|
||||
DOUBLE,
|
||||
BOOLEAN,
|
||||
};
|
||||
|
||||
/** returns a shared instance of Configuration */
|
||||
static Configuration *getInstance();
|
||||
|
||||
|
|
|
@ -851,6 +851,13 @@ CC_DEPRECATED_ATTRIBUTE const int kCCDirectorProjectionCustom = Director::PROJEC
|
|||
CC_DEPRECATED_ATTRIBUTE const int kCCDirectorProjectionDefault = Director::PROJECTION_DEFAULT;
|
||||
CC_DEPRECATED_ATTRIBUTE typedef enum Director::Projection ccDirectorProjection;
|
||||
|
||||
CC_DEPRECATED_ATTRIBUTE const int ConfigurationError = Configuration::ERROR;
|
||||
CC_DEPRECATED_ATTRIBUTE const int ConfigurationString = Configuration::STRING;
|
||||
CC_DEPRECATED_ATTRIBUTE const int ConfigurationInt = Configuration::INT;
|
||||
CC_DEPRECATED_ATTRIBUTE const int ConfigurationDouble = Configuration::DOUBLE;
|
||||
CC_DEPRECATED_ATTRIBUTE const int ConfigurationBoolean = Configuration::BOOLEAN;
|
||||
CC_DEPRECATED_ATTRIBUTE typedef enum Configuration::Type ccConfigurationType;
|
||||
|
||||
#define kCCVerticalTextAlignmentTop kVerticalTextAlignmentTop
|
||||
#define kCCVerticalTextAlignmentCenter kVerticalTextAlignmentCenter
|
||||
#define kCCVerticalTextAlignmentBottom kVerticalTextAlignmentBottom
|
||||
|
|
Loading…
Reference in New Issue