Files
cocos4/native/cocos/scripting/js-bindings/manual/jsb_global.h
T
James Chen f0d2eeb2b3 Adds jsb_set_extend_property for easily setting extend property.
Adds jsb_init_file_operation_delegate and jsb_enable_debugger for easily use in AppDelegate.cpp.
2017-10-09 14:57:14 +08:00

21 lines
488 B
C++

#pragma once
#include <string>
namespace se {
class Object;
class Class;
}
extern se::Object* __ccObj;
extern se::Object* __jsbObj;
bool jsb_register_global_variables(se::Object* global);
void jsb_init_file_operation_delegate();
bool jsb_enable_debugger(const std::string& debuggerServerAddr, uint32_t port);
bool jsb_set_extend_property(const char* ns, const char* clsName);
bool jsb_run_script(const std::string& filePath);
void jsb_set_xxtea_key(const std::string& key);