mirror of https://github.com/axmolengine/axmol.git
[AUTO]: updating luabinding & jsbinding automatically
This commit is contained in:
parent
c28c1ffbfb
commit
61aad4581a
|
@ -5868,6 +5868,20 @@ vec3
|
|||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method parseVec3
|
||||
* @param {char} arg0
|
||||
* @param {vec3_object} arg1
|
||||
* @return {bool}
|
||||
*/
|
||||
parseVec3 : function (
|
||||
char,
|
||||
vec3
|
||||
)
|
||||
{
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method parseAxisAngle
|
||||
* @param {char} arg0
|
||||
|
@ -5897,17 +5911,15 @@ vec2
|
|||
},
|
||||
|
||||
/**
|
||||
* @method parseVec3
|
||||
* @param {char} arg0
|
||||
* @param {vec3_object} arg1
|
||||
* @return {bool}
|
||||
* @method createNonRefCounted
|
||||
* @param {String} arg0
|
||||
* @return {cc.Properties}
|
||||
*/
|
||||
parseVec3 : function (
|
||||
char,
|
||||
vec3
|
||||
createNonRefCounted : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
return false;
|
||||
return cc.Properties;
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -5924,18 +5936,6 @@ vec4
|
|||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method createWithoutAutorelease
|
||||
* @param {String} arg0
|
||||
* @return {cc.Properties}
|
||||
*/
|
||||
createWithoutAutorelease : function (
|
||||
str
|
||||
)
|
||||
{
|
||||
return cc.Properties;
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -16639,6 +16639,33 @@ bool js_cocos2dx_Properties_parseColor(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
JS_ReportError(cx, "js_cocos2dx_Properties_parseColor : wrong number of arguments");
|
||||
return false;
|
||||
}
|
||||
bool js_cocos2dx_Properties_parseVec3(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
bool ok = true;
|
||||
if (argc == 2) {
|
||||
const char* arg0;
|
||||
cocos2d::Vec3* arg1;
|
||||
std::string arg0_tmp; ok &= jsval_to_std_string(cx, args.get(0), &arg0_tmp); arg0 = arg0_tmp.c_str();
|
||||
do {
|
||||
if (!args.get(1).isObject()) { ok = false; break; }
|
||||
js_proxy_t *jsProxy;
|
||||
JSObject *tmpObj = args.get(1).toObjectOrNull();
|
||||
jsProxy = jsb_get_js_proxy(tmpObj);
|
||||
arg1 = (cocos2d::Vec3*)(jsProxy ? jsProxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( arg1, cx, false, "Invalid Native Object");
|
||||
} while (0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_Properties_parseVec3 : Error processing arguments");
|
||||
bool ret = cocos2d::Properties::parseVec3(arg0, arg1);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
jsret = BOOLEAN_TO_JSVAL(ret);
|
||||
args.rval().set(jsret);
|
||||
return true;
|
||||
}
|
||||
JS_ReportError(cx, "js_cocos2dx_Properties_parseVec3 : wrong number of arguments");
|
||||
return false;
|
||||
}
|
||||
|
||||
bool js_cocos2dx_Properties_parseAxisAngle(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
|
@ -16693,30 +16720,28 @@ bool js_cocos2dx_Properties_parseVec2(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool js_cocos2dx_Properties_parseVec3(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
bool js_cocos2dx_Properties_createNonRefCounted(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
bool ok = true;
|
||||
if (argc == 2) {
|
||||
const char* arg0;
|
||||
cocos2d::Vec3* arg1;
|
||||
std::string arg0_tmp; ok &= jsval_to_std_string(cx, args.get(0), &arg0_tmp); arg0 = arg0_tmp.c_str();
|
||||
do {
|
||||
if (!args.get(1).isObject()) { ok = false; break; }
|
||||
js_proxy_t *jsProxy;
|
||||
JSObject *tmpObj = args.get(1).toObjectOrNull();
|
||||
jsProxy = jsb_get_js_proxy(tmpObj);
|
||||
arg1 = (cocos2d::Vec3*)(jsProxy ? jsProxy->ptr : NULL);
|
||||
JSB_PRECONDITION2( arg1, cx, false, "Invalid Native Object");
|
||||
} while (0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_Properties_parseVec3 : Error processing arguments");
|
||||
bool ret = cocos2d::Properties::parseVec3(arg0, arg1);
|
||||
if (argc == 1) {
|
||||
std::string arg0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_Properties_createNonRefCounted : Error processing arguments");
|
||||
cocos2d::Properties* ret = cocos2d::Properties::createNonRefCounted(arg0);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
jsret = BOOLEAN_TO_JSVAL(ret);
|
||||
do {
|
||||
if (ret) {
|
||||
js_proxy_t *jsProxy = js_get_or_create_proxy<cocos2d::Properties>(cx, (cocos2d::Properties*)ret);
|
||||
jsret = OBJECT_TO_JSVAL(jsProxy->obj);
|
||||
} else {
|
||||
jsret = JSVAL_NULL;
|
||||
}
|
||||
} while (0);
|
||||
args.rval().set(jsret);
|
||||
return true;
|
||||
}
|
||||
JS_ReportError(cx, "js_cocos2dx_Properties_parseVec3 : wrong number of arguments");
|
||||
JS_ReportError(cx, "js_cocos2dx_Properties_createNonRefCounted : wrong number of arguments");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -16747,31 +16772,6 @@ bool js_cocos2dx_Properties_parseVec4(JSContext *cx, uint32_t argc, jsval *vp)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool js_cocos2dx_Properties_createWithoutAutorelease(JSContext *cx, uint32_t argc, jsval *vp)
|
||||
{
|
||||
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
|
||||
bool ok = true;
|
||||
if (argc == 1) {
|
||||
std::string arg0;
|
||||
ok &= jsval_to_std_string(cx, args.get(0), &arg0);
|
||||
JSB_PRECONDITION2(ok, cx, false, "js_cocos2dx_Properties_createWithoutAutorelease : Error processing arguments");
|
||||
cocos2d::Properties* ret = cocos2d::Properties::createWithoutAutorelease(arg0);
|
||||
jsval jsret = JSVAL_NULL;
|
||||
do {
|
||||
if (ret) {
|
||||
js_proxy_t *jsProxy = js_get_or_create_proxy<cocos2d::Properties>(cx, (cocos2d::Properties*)ret);
|
||||
jsret = OBJECT_TO_JSVAL(jsProxy->obj);
|
||||
} else {
|
||||
jsret = JSVAL_NULL;
|
||||
}
|
||||
} while (0);
|
||||
args.rval().set(jsret);
|
||||
return true;
|
||||
}
|
||||
JS_ReportError(cx, "js_cocos2dx_Properties_createWithoutAutorelease : wrong number of arguments");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void js_cocos2d_Properties_finalize(JSFreeOp *fop, JSObject *obj) {
|
||||
|
@ -16824,11 +16824,11 @@ void js_register_cocos2dx_Properties(JSContext *cx, JS::HandleObject global) {
|
|||
|
||||
static JSFunctionSpec st_funcs[] = {
|
||||
JS_FN("parseColor", js_cocos2dx_Properties_parseColor, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("parseVec3", js_cocos2dx_Properties_parseVec3, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("parseAxisAngle", js_cocos2dx_Properties_parseAxisAngle, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("parseVec2", js_cocos2dx_Properties_parseVec2, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("parseVec3", js_cocos2dx_Properties_parseVec3, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("createNonRefCounted", js_cocos2dx_Properties_createNonRefCounted, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("parseVec4", js_cocos2dx_Properties_parseVec4, 2, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FN("createWithoutAutorelease", js_cocos2dx_Properties_createWithoutAutorelease, 1, JSPROP_PERMANENT | JSPROP_ENUMERATE),
|
||||
JS_FS_END
|
||||
};
|
||||
|
||||
|
|
|
@ -901,11 +901,11 @@ bool js_cocos2dx_Properties_getNextProperty(JSContext *cx, uint32_t argc, jsval
|
|||
bool js_cocos2dx_Properties_getFloat(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Properties_getQuaternionFromAxisAngle(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Properties_parseColor(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Properties_parseVec3(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Properties_parseAxisAngle(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Properties_parseVec2(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Properties_parseVec3(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Properties_createNonRefCounted(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Properties_parseVec4(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
bool js_cocos2dx_Properties_createWithoutAutorelease(JSContext *cx, uint32_t argc, jsval *vp);
|
||||
|
||||
extern JSClass *jsb_cocos2d_FileUtils_class;
|
||||
extern JSObject *jsb_cocos2d_FileUtils_prototype;
|
||||
|
|
Loading…
Reference in New Issue