static void unregist_ktl_inflate() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("KTL:Bzip2Decompressor:unregist"), SPRIG_KRKR_LOG_LEVEL_NOTIFICATION); sprig::krkr::tjs::object_type global(::TVPGetScriptDispatch(), false); if (global) { sprig::krkr::tjs::DeleteMember(global, SPRIG_KRKR_TJS_W("Bzip2Decompressor")); } }
static void unregist_ktl_system_info() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("KTL:SystemInfo:unregist"), SPRIG_KRKR_LOG_LEVEL_NOTIFICATION); sprig::krkr::tjs::object_type global(::TVPGetScriptDispatch(), false); if (global) { sprig::krkr::tjs::DeleteMember(global, SPRIG_KRKR_TJS_W("SystemInfo")); } }
// // regist_ktl_inflate // unregist_ktl_inflate // static void regist_ktl_inflate() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("KTL:Bzip2Decompressor:regist"), SPRIG_KRKR_LOG_LEVEL_NOTIFICATION); sprig::krkr::tjs::object_type global(::TVPGetScriptDispatch(), false); if (global) { sprig::krkr::tjs::AddNewMember(global, SPRIG_KRKR_TJS_W("Bzip2Decompressor"), ktl::CreateNativeClassBzip2Decompressor()); } }
static void unregist_ktl_fps_counter() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("KTL:FPSCounter:unregist"), SPRIG_KRKR_LOG_LEVEL_NOTIFICATION); sprig::krkr::tjs::object_type global(::TVPGetScriptDispatch(), false); if (global) { sprig::krkr::tjs::DeleteMember(global, SPRIG_KRKR_TJS_W("FPSCounter")); } }
// // regist_ktl_system_info // unregist_ktl_system_info // static void regist_ktl_system_info() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("KTL:SystemInfo:regist"), SPRIG_KRKR_LOG_LEVEL_NOTIFICATION); sprig::krkr::tjs::object_type global(::TVPGetScriptDispatch(), false); if (global) { sprig::krkr::tjs::AddNewMember(global, SPRIG_KRKR_TJS_W("SystemInfo"), ktl::CreateNativeClassSystemInfo()); } }
// // regist_ktl_fps_counter // unregist_ktl_fps_counter // static void regist_ktl_fps_counter() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("KTL:FPSCounter:regist"), SPRIG_KRKR_LOG_LEVEL_NOTIFICATION); sprig::krkr::tjs::object_type global(::TVPGetScriptDispatch(), false); if (global) { sprig::krkr::tjs::AddNewMember(global, SPRIG_KRKR_TJS_W("FPSCounter"), ktl::CreateNativeClassFPSCounter()); } }
tjs_error TJS_INTF_METHOD SpriteCoord::Construct( tjs_int numparams, tTJSVariant** param, iTJSDispatch2* tjs_obj ) { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("SpriteCoord::Construct"), SPRIG_KRKR_LOG_LEVEL_NORMAL); instance_ = boost::make_shared<NativeSpriteCoord>(); return TJS_S_OK; }
static void unregist_ktl_checksum() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("KTL:Checksum:unregist"), SPRIG_KRKR_LOG_LEVEL_NOTIFICATION); sprig::krkr::tjs::object_type global(::TVPGetScriptDispatch(), false); if (global) { sprig::krkr::tjs::DeleteMember(global, SPRIG_KRKR_TJS_W("SHA1")); sprig::krkr::tjs::DeleteMember(global, SPRIG_KRKR_TJS_W("MD5")); sprig::krkr::tjs::DeleteMember(global, SPRIG_KRKR_TJS_W("CRC_32")); sprig::krkr::tjs::DeleteMember(global, SPRIG_KRKR_TJS_W("CRC_XMODEM")); sprig::krkr::tjs::DeleteMember(global, SPRIG_KRKR_TJS_W("CRC_CCITT")); sprig::krkr::tjs::DeleteMember(global, SPRIG_KRKR_TJS_W("CRC_16")); } }
// // regist_ktl_checksum // unregist_ktl_checksum // static void regist_ktl_checksum() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("KTL:Checksum:regist"), SPRIG_KRKR_LOG_LEVEL_NOTIFICATION); sprig::krkr::tjs::object_type global(::TVPGetScriptDispatch(), false); if (global) { sprig::krkr::tjs::AddNewMember(global, SPRIG_KRKR_TJS_W("CRC_16"), ktl::CreateNativeClassCRC_16()); sprig::krkr::tjs::AddNewMember(global, SPRIG_KRKR_TJS_W("CRC_CCITT"), ktl::CreateNativeClassCRC_CCITT()); sprig::krkr::tjs::AddNewMember(global, SPRIG_KRKR_TJS_W("CRC_XMODEM"), ktl::CreateNativeClassCRC_XMODEM()); sprig::krkr::tjs::AddNewMember(global, SPRIG_KRKR_TJS_W("CRC_32"), ktl::CreateNativeClassCRC_32()); sprig::krkr::tjs::AddNewMember(global, SPRIG_KRKR_TJS_W("MD5"), ktl::CreateNativeClassMD5()); sprig::krkr::tjs::AddNewMember(global, SPRIG_KRKR_TJS_W("SHA1"), ktl::CreateNativeClassSHA1()); } }
tjs_error TJS_INTF_METHOD BigInt::Construct( tjs_int numparams, tTJSVariant** param, iTJSDispatch2* tjs_obj ) { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("BigInt::Construct"), SPRIG_KRKR_LOG_LEVEL_NORMAL); if (numparams >= 2) { instance_ = boost::make_shared<NativeBigInt>(*param[0], *param[1]); } else if (numparams >= 1) { instance_ = boost::make_shared<NativeBigInt>(*param[0]); } else { instance_ = boost::make_shared<NativeBigInt>(); } return TJS_S_OK; }
tjs_error TJS_INTF_METHOD VariateRandom::Construct( tjs_int numparams, tTJSVariant** param, iTJSDispatch2* tjs_obj ) { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("VariateRandom::Construct"), SPRIG_KRKR_LOG_LEVEL_NORMAL); if (numparams >= 2) { SPRIG_KRKR_TYPE_CHECK(0, tvtObject); SPRIG_KRKR_TYPE_CHECK(1, tvtObject); instance_ = boost::make_shared<NativeVariateRandom>( param[0]->AsObjectNoAddRef(), param[1]->AsObjectNoAddRef() ); } else if (numparams >= 1) { SPRIG_KRKR_TYPE_CHECK(0, tvtObject); instance_ = boost::make_shared<NativeVariateRandom>( param[0]->AsObjectNoAddRef() ); } else { instance_ = boost::make_shared<NativeVariateRandom>(); } return TJS_S_OK; }
void TJS_INTF_METHOD VariateRandom::Invalidate() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("VariateRandom::Invalidate"), SPRIG_KRKR_LOG_LEVEL_NORMAL); instance_.reset(); }
void TJS_INTF_METHOD BigInt::Invalidate() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("BigInt::Invalidate"), SPRIG_KRKR_LOG_LEVEL_NORMAL); instance_.reset(); }
void TJS_INTF_METHOD SpriteCoord::Invalidate() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("SpriteCoord::Invalidate"), SPRIG_KRKR_LOG_LEVEL_NORMAL); instance_.reset(); }
void TJS_INTF_METHOD LayeredSplashWindow::Invalidate() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("LayeredSplashWindow::Invalidate"), SPRIG_KRKR_LOG_LEVEL_NORMAL); instance_.reset(); }
void TJS_INTF_METHOD StorageStream::Invalidate() { SPRIG_KRKR_SECTION(SPRIG_KRKR_TJS_W("StorageStream::Invalidate"), SPRIG_KRKR_LOG_LEVEL_NORMAL); instance_.reset(); }