#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class SDKUtilityWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(SDKUtility); Utils.BeginObjectRegister(type, L, translator, 0, 23, 29, 20); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); Utils.RegisterFunc(L, Utils.METHOD_IDX, "InstallAPK", _m_InstallAPK); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyAsset", _m_CopyAsset); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyContent", _m_CopyContent); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RestartApp", _m_RestartApp); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenUrl", _m_OpenUrl); Utils.RegisterFunc(L, Utils.METHOD_IDX, "MakeKeyAndVisible", _m_MakeKeyAndVisible); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SyncClientPackageID", _m_SyncClientPackageID); Utils.RegisterFunc(L, Utils.METHOD_IDX, "HandleSdkMessage", _m_HandleSdkMessage); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformInit", _m_FreePlatformInit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformBindPhone", _m_FreePlatformBindPhone); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformLogin", _m_FreePlatformLogin); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformLoginout", _m_FreePlatformLoginout); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformSwitchAccount", _m_FreePlatformSwitchAccount); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformPay", _m_FreePlatformPay); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformDoIDAuthentication", _m_FreePlatformDoIDAuthentication); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformCheckIDAuthentication", _m_FreePlatformCheckIDAuthentication); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnServerChargeOk", _m_OnServerChargeOk); Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateRoleOk", _m_CreateRoleOk); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RoleLogin", _m_RoleLogin); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RoleLevelUp", _m_RoleLevelUp); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GeTui_SendLocalMessage", _m_GeTui_SendLocalMessage); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GeTui_RemoveLocalMessage", _m_GeTui_RemoveLocalMessage); Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChannelPlatform", _g_get_ChannelPlatform); Utils.RegisterFunc(L, Utils.GETTER_IDX, "InitFinished", _g_get_InitFinished); Utils.RegisterFunc(L, Utils.GETTER_IDX, "BatteryLevel", _g_get_BatteryLevel); Utils.RegisterFunc(L, Utils.GETTER_IDX, "ChargingType", _g_get_ChargingType); Utils.RegisterFunc(L, Utils.GETTER_IDX, "Device", _g_get_Device); Utils.RegisterFunc(L, Utils.GETTER_IDX, "NetworkType", _g_get_NetworkType); Utils.RegisterFunc(L, Utils.GETTER_IDX, "AssetCopyFinished", _g_get_AssetCopyFinished); Utils.RegisterFunc(L, Utils.GETTER_IDX, "DeviceRootPath", _g_get_DeviceRootPath); Utils.RegisterFunc(L, Utils.GETTER_IDX, "RegistrationID", _g_get_RegistrationID); Utils.RegisterFunc(L, Utils.GETTER_IDX, "FreePlatformInfo", _g_get_FreePlatformInfo); Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnBatteryLevelChanged", _g_get_OnBatteryLevelChanged); Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnChargingTypeChanged", _g_get_OnChargingTypeChanged); Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnDeviceInfoChanged", _g_get_OnDeviceInfoChanged); Utils.RegisterFunc(L, Utils.GETTER_IDX, "OnNetworkStatusChanged", _g_get_OnNetworkStatusChanged); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformInitOk", _g_get_onFreePlatformInitOk); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformInitFail", _g_get_onFreePlatformInitFail); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformLoginOk", _g_get_onFreePlatformLoginOk); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformLoginFail", _g_get_onFreePlatformLoginFail); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformLogoutOk", _g_get_onFreePlatformLogoutOk); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformLogoutFail", _g_get_onFreePlatformLogoutFail); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformPayOk", _g_get_onFreePlatformPayOk); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformPayFail", _g_get_onFreePlatformPayFail); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformPayCancel", _g_get_onFreePlatformPayCancel); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformBindOk", _g_get_onFreePlatformBindOk); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatformBindFail", _g_get_onFreePlatformBindFail); Utils.RegisterFunc(L, Utils.GETTER_IDX, "channelId", _g_get_channelId); Utils.RegisterFunc(L, Utils.GETTER_IDX, "platfromId", _g_get_platfromId); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatfromCheckIDOK", _g_get_onFreePlatfromCheckIDOK); Utils.RegisterFunc(L, Utils.GETTER_IDX, "onFreePlatfromDoIDAuthenticationOk", _g_get_onFreePlatfromDoIDAuthenticationOk); Utils.RegisterFunc(L, Utils.SETTER_IDX, "ChannelPlatform", _s_set_ChannelPlatform); Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnBatteryLevelChanged", _s_set_OnBatteryLevelChanged); Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnChargingTypeChanged", _s_set_OnChargingTypeChanged); Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnDeviceInfoChanged", _s_set_OnDeviceInfoChanged); Utils.RegisterFunc(L, Utils.SETTER_IDX, "OnNetworkStatusChanged", _s_set_OnNetworkStatusChanged); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformInitOk", _s_set_onFreePlatformInitOk); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformInitFail", _s_set_onFreePlatformInitFail); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformLoginOk", _s_set_onFreePlatformLoginOk); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformLoginFail", _s_set_onFreePlatformLoginFail); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformLogoutOk", _s_set_onFreePlatformLogoutOk); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformLogoutFail", _s_set_onFreePlatformLogoutFail); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformPayOk", _s_set_onFreePlatformPayOk); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformPayFail", _s_set_onFreePlatformPayFail); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformPayCancel", _s_set_onFreePlatformPayCancel); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformBindOk", _s_set_onFreePlatformBindOk); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatformBindFail", _s_set_onFreePlatformBindFail); Utils.RegisterFunc(L, Utils.SETTER_IDX, "channelId", _s_set_channelId); Utils.RegisterFunc(L, Utils.SETTER_IDX, "platfromId", _s_set_platfromId); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatfromCheckIDOK", _s_set_onFreePlatfromCheckIDOK); Utils.RegisterFunc(L, Utils.SETTER_IDX, "onFreePlatfromDoIDAuthenticationOk", _s_set_onFreePlatfromDoIDAuthenticationOk); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); Utils.RegisterFunc(L, Utils.CLS_IDX, "GetApplicationContext", _m_GetApplicationContext_xlua_st_); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if(LuaAPI.lua_gettop(L) == 1) { SDKUtility gen_ret = new SDKUtility(); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to SDKUtility constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Init( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_InstallAPK(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string _path = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.InstallAPK( _path ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CopyAsset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.CopyAsset( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CopyContent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string _content = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.CopyContent( _content ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RestartApp(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.RestartApp( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OpenUrl(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string _url = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.OpenUrl( _url ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_MakeKeyAndVisible(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.MakeKeyAndVisible( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SyncClientPackageID(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.SyncClientPackageID( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetApplicationContext_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { UnityEngine.AndroidJavaObject gen_ret = SDKUtility.GetApplicationContext( ); translator.Push(L, gen_ret); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_HandleSdkMessage(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string _jsonString = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.HandleSdkMessage( _jsonString ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FreePlatformInit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.FreePlatformInit( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FreePlatformBindPhone(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.FreePlatformBindPhone( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FreePlatformLogin(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.FreePlatformLogin( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FreePlatformLoginout(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.FreePlatformLoginout( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FreePlatformSwitchAccount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.FreePlatformSwitchAccount( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FreePlatformPay(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string _title = LuaAPI.lua_tostring(L, 2); float _money = (float)LuaAPI.lua_tonumber(L, 3); string _cpInfo = LuaAPI.lua_tostring(L, 4); gen_to_be_invoked.FreePlatformPay( _title, _money, _cpInfo ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FreePlatformDoIDAuthentication(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string __account = LuaAPI.lua_tostring(L, 2); string __userName = LuaAPI.lua_tostring(L, 3); string __idNumber = LuaAPI.lua_tostring(L, 4); gen_to_be_invoked.FreePlatformDoIDAuthentication( __account, __userName, __idNumber ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_FreePlatformCheckIDAuthentication(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string __account = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.FreePlatformCheckIDAuthentication( __account ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_OnServerChargeOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string _orderID = LuaAPI.lua_tostring(L, 2); uint _coin = LuaAPI.xlua_touint(L, 3); gen_to_be_invoked.OnServerChargeOk( _orderID, _coin ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_CreateRoleOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string _roleID = LuaAPI.lua_tostring(L, 2); string _roleName = LuaAPI.lua_tostring(L, 3); gen_to_be_invoked.CreateRoleOk( _roleID, _roleName ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RoleLogin(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string _roleID = LuaAPI.lua_tostring(L, 2); string _roleName = LuaAPI.lua_tostring(L, 3); string _lv = LuaAPI.lua_tostring(L, 4); string _vipLV = LuaAPI.lua_tostring(L, 5); gen_to_be_invoked.RoleLogin( _roleID, _roleName, _lv, _vipLV ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RoleLevelUp(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.RoleLevelUp( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GeTui_SendLocalMessage(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { LitJson.JsonData _jsonData = (LitJson.JsonData)translator.GetObject(L, 2, typeof(LitJson.JsonData)); gen_to_be_invoked.GeTui_SendLocalMessage( _jsonData ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GeTui_RemoveLocalMessage(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); { string _id = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.GeTui_RemoveLocalMessage( _id ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_ChannelPlatform(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.ChannelPlatform); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_InitFinished(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.InitFinished); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_BatteryLevel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.BatteryLevel); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_ChargingType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.ChargingType); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_Device(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.Device); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_NetworkType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.NetworkType); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_AssetCopyFinished(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.AssetCopyFinished); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_DeviceRootPath(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.DeviceRootPath); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_RegistrationID(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.RegistrationID); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_FreePlatformInfo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.FreePlatformInfo); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_OnBatteryLevelChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.OnBatteryLevelChanged); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_OnChargingTypeChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.OnChargingTypeChanged); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_OnDeviceInfoChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.OnDeviceInfoChanged); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_OnNetworkStatusChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.OnNetworkStatusChanged); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformInitOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformInitOk); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformInitFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformInitFail); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformLoginOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformLoginOk); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformLoginFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformLoginFail); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformLogoutOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformLogoutOk); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformLogoutFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformLogoutFail); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformPayOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformPayOk); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformPayFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformPayFail); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformPayCancel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformPayCancel); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformBindOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformBindOk); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatformBindFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatformBindFail); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_channelId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.channelId); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_platfromId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.platfromId); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatfromCheckIDOK(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatfromCheckIDOK); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_onFreePlatfromDoIDAuthenticationOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.onFreePlatfromDoIDAuthenticationOk); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_ChannelPlatform(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); SDKUtility.E_ChannelPlatform gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.ChannelPlatform = gen_value; } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_OnBatteryLevelChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.OnBatteryLevelChanged = translator.GetDelegate>(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_OnChargingTypeChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.OnChargingTypeChanged = translator.GetDelegate>(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_OnDeviceInfoChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.OnDeviceInfoChanged = translator.GetDelegate>(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_OnNetworkStatusChanged(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.OnNetworkStatusChanged = translator.GetDelegate>(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformInitOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformInitOk = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformInitFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformInitFail = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformLoginOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformLoginOk = translator.GetDelegate>(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformLoginFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformLoginFail = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformLogoutOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformLogoutOk = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformLogoutFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformLogoutFail = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformPayOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformPayOk = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformPayFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformPayFail = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformPayCancel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformPayCancel = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformBindOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformBindOk = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatformBindFail(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatformBindFail = translator.GetDelegate(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_channelId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.channelId = LuaAPI.lua_tostring(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_platfromId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.platfromId = LuaAPI.lua_tostring(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatfromCheckIDOK(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatfromCheckIDOK = translator.GetDelegate>(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_onFreePlatfromDoIDAuthenticationOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); gen_to_be_invoked.onFreePlatfromDoIDAuthenticationOk = translator.GetDelegate>(L, 2); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }