Class ccs.ComAttribute
- Defined in: CCComAttribute.js
- Extends ccs.Component
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccs.ComAttribute
|
Method Summary
Class Detail
ccs.ComAttribute()
Base class for ccs.ComAttribute
Method Detail
-
allocates and initializes a ComAttribute.
// example var com = ccs.ComAttribute.create();
- Returns:
- {ccs.ComAttribute}
-
{Boolean} getBool(key)Get boolean value from attribute
- Parameters:
- {String} key
- Returns:
- {Boolean}
-
{String} getCString(key)Get string value from attribute
- Parameters:
- {String} key
- Returns:
- {String}
-
{Number} getDouble(key)Get double value from attribute
- Parameters:
- {String} key
- Returns:
- {Number}
-
{Number} getFloat(key)Get float value from attribute
- Parameters:
- {String} key
- Returns:
- {Number}
-
{Number} getInt(key)Get int value from attribute
- Parameters:
- {String} key
- Returns:
- {Number}
-
{Object} getObject(key)Get object value from attribute
- Parameters:
- {String} key
- Returns:
- {Object}
-
parse(path)
- Parameters:
- path
-
setBool(key, value)Set boolean attribute
- Parameters:
- {String} key
- {Boolean} value
-
setCString(key, value)Set string attribute
- Parameters:
- {String} key
- {Boolean} value
-
setDouble(key, value)Set double attribute
- Parameters:
- {String} key
- {number} value
-
setFloat(key, value)Set float attribute
- Parameters:
- {String} key
- {number} value
-
setInt(key, value)Set int attribute
- Parameters:
- {String} key
- {number} value
-
setObject(key, value)Set object attribute
- Parameters:
- {String} key
- {Object} value