bool js_proj_setting_set_resetAngle(JSContextRef cx,JSObjectRef j_obj,JSStringRef name,JSValueRef vp,JSValueRef *exception) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(j_obj); if (proj_setup!=NULL) proj_setup->reset_angle=script_value_to_bool(cx,vp); return(TRUE); }
JSValueRef js_proj_setting_get_name(JSContextRef cx,JSObjectRef j_obj,JSStringRef name,JSValueRef *exception) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(j_obj); if (proj_setup==NULL) return(script_null_to_value(cx)); return(script_string_to_value(cx,proj_setup->name)); }
JSValueRef js_proj_setting_get_resetAngle(JSContextRef cx,JSObjectRef j_obj,JSStringRef name,JSValueRef *exception) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(j_obj); if (proj_setup==NULL) return(script_bool_to_value(cx,FALSE)); return(script_bool_to_value(cx,proj_setup->reset_angle)); }
bool js_proj_action_set_auto_reflect(JSContextRef cx,JSObjectRef j_obj,JSStringRef name,JSValueRef vp,JSValueRef *exception) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(j_obj); if (proj_setup!=NULL) proj_setup->action.reflect=script_value_to_bool(cx,vp); return(TRUE); }
bool js_proj_action_set_auto_bounceMinMove(JSContextRef cx,JSObjectRef j_obj,JSStringRef name,JSValueRef vp,JSValueRef *exception) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(j_obj); if (proj_setup!=NULL) proj_setup->action.bounce_min_move=script_value_to_float(cx,vp); return(TRUE); }
JSValueRef js_proj_action_get_auto_reflect(JSContextRef cx,JSObjectRef j_obj,JSStringRef name,JSValueRef *exception) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(j_obj); if (proj_setup==NULL) return(script_null_to_value(cx)); return(script_bool_to_value(cx,proj_setup->action.reflect)); }
JSValueRef js_proj_action_get_auto_bounceMinMove(JSContextRef cx,JSObjectRef j_obj,JSStringRef name,JSValueRef *exception) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(j_obj); if (proj_setup==NULL) return(script_null_to_value(cx)); return(script_float_to_value(cx,proj_setup->action.bounce_min_move)); }
JSBool js_proj_melee_set_fallOff(JSContext *cx,JSObject *j_obj,jsval id,jsval *vp) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(); if (proj_setup==NULL) return(JS_TRUE); proj_setup->melee.fall_off=JSVAL_TO_BOOLEAN(*vp); return(JS_TRUE); }
JSBool js_proj_melee_set_force(JSContext *cx,JSObject *j_obj,jsval id,jsval *vp) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(); if (proj_setup==NULL) return(JS_TRUE); proj_setup->melee.force=JSVAL_TO_INT(*vp); return(JS_TRUE); }
JSBool js_proj_melee_set_strikePoseName(JSContext *cx,JSObject *j_obj,jsval id,jsval *vp) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(); if (proj_setup==NULL) return(JS_TRUE); script_value_to_string(*vp,proj_setup->melee.strike_pose_name,name_str_len); return(JS_TRUE); }
JSBool js_proj_melee_get_damage(JSContext *cx,JSObject *j_obj,jsval id,jsval *vp) { proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(); if (proj_setup==NULL) return(JS_TRUE); *vp=INT_TO_JSVAL(proj_setup->melee.damage); return(JS_TRUE); }
JSBool js_proj_melee_get_strikeBoneTag(JSContext *cx,JSObject *j_obj,jsval id,jsval *vp) { char str[32]; proj_setup_type *proj_setup; proj_setup=proj_setup_get_attach(); if (proj_setup==NULL) return(JS_TRUE); model_tag_to_text(proj_setup->melee.strike_bone_tag,str); *vp=script_string_to_value(str); return(JS_TRUE); }