1161 lines
43 KiB
C#
1161 lines
43 KiB
C#
#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 BFBFParseClientManagerWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(BF.BFParseClientManager);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 29, 5, 5);
|
|
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetServerUrl", _m_SetServerUrl);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaCheckPurchaseOrderCallback", _m_SetLuaCheckPurchaseOrderCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaCheckPurchaseConsumeCallback", _m_SetLuaCheckPurchaseConsumeCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaCheckPurchaseIOSOrderCallback", _m_SetLuaCheckPurchaseIOSOrderCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaCheckPurchaseIOSConsumeCallback", _m_SetLuaCheckPurchaseIOSConsumeCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaFirstRequestCallback", _m_SetLuaFirstRequestCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserLogin", _m_UserLogin);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UserTokenLogin", _m_UserTokenLogin);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersPost", _m_UsersPost);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersGet", _m_UsersGet);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersPut", _m_UsersPut);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UsersDel", _m_UsersDel);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPurchaseGPOrder", _m_CheckPurchaseGPOrder);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPurchaseGPConsume", _m_CheckPurchaseGPConsume);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "FirstRequestAction", _m_FirstRequestAction);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPurchaseIOSOrder", _m_CheckPurchaseIOSOrder);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckPurchaseIOSConsume", _m_CheckPurchaseIOSConsume);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCheckPurchaseGPOrder", _m_OnCheckPurchaseGPOrder);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCheckPurchaseGPConsume", _m_OnCheckPurchaseGPConsume);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnFirstRequestAction", _m_OnFirstRequestAction);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCheckPurchaseIOSOrder", _m_OnCheckPurchaseIOSOrder);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnCheckPurchaseIOSConsume", _m_OnCheckPurchaseIOSConsume);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "FunctionPost", _m_FunctionPost);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StorageWrite", _m_StorageWrite);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StorageRead", _m_StorageRead);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StorageUpdate", _m_StorageUpdate);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StorageDelete", _m_StorageDelete);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Put", _m_Put);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaCheckPurchaseOrderCallback", _g_get_luaCheckPurchaseOrderCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaCheckPurchaseConsumeCallback", _g_get_luaCheckPurchaseConsumeCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaFirstRequestCallback", _g_get_luaFirstRequestCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaCheckPurchaseIOSOrderCallback", _g_get_luaCheckPurchaseIOSOrderCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaCheckPurchaseIOSConsumeCallback", _g_get_luaCheckPurchaseIOSConsumeCallback);
|
|
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaCheckPurchaseOrderCallback", _s_set_luaCheckPurchaseOrderCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaCheckPurchaseConsumeCallback", _s_set_luaCheckPurchaseConsumeCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaFirstRequestCallback", _s_set_luaFirstRequestCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaCheckPurchaseIOSOrderCallback", _s_set_luaCheckPurchaseIOSOrderCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaCheckPurchaseIOSConsumeCallback", _s_set_luaCheckPurchaseIOSConsumeCallback);
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CreateInstance(RealStatePtr L)
|
|
{
|
|
return LuaAPI.luaL_error(L, "BF.BFParseClientManager does not have a constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Create_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = BF.BFParseClientManager.Create( );
|
|
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_Init(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)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_SetServerUrl(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 7&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 6) || LuaAPI.lua_type(L, 6) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 7) || LuaAPI.lua_type(L, 7) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _parseClientPlatform = LuaAPI.lua_tostring(L, 3);
|
|
string _parseClientVersion = LuaAPI.lua_tostring(L, 4);
|
|
string _psarseRevocableSession = LuaAPI.lua_tostring(L, 5);
|
|
string _parseApplicationId = LuaAPI.lua_tostring(L, 6);
|
|
string _parseClientKey = LuaAPI.lua_tostring(L, 7);
|
|
|
|
gen_to_be_invoked.SetServerUrl( _url, _parseClientPlatform, _parseClientVersion, _psarseRevocableSession, _parseApplicationId, _parseClientKey );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 6&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 6) || LuaAPI.lua_type(L, 6) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _parseClientPlatform = LuaAPI.lua_tostring(L, 3);
|
|
string _parseClientVersion = LuaAPI.lua_tostring(L, 4);
|
|
string _psarseRevocableSession = LuaAPI.lua_tostring(L, 5);
|
|
string _parseApplicationId = LuaAPI.lua_tostring(L, 6);
|
|
|
|
gen_to_be_invoked.SetServerUrl( _url, _parseClientPlatform, _parseClientVersion, _psarseRevocableSession, _parseApplicationId );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 5) || LuaAPI.lua_type(L, 5) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _parseClientPlatform = LuaAPI.lua_tostring(L, 3);
|
|
string _parseClientVersion = LuaAPI.lua_tostring(L, 4);
|
|
string _psarseRevocableSession = LuaAPI.lua_tostring(L, 5);
|
|
|
|
gen_to_be_invoked.SetServerUrl( _url, _parseClientPlatform, _parseClientVersion, _psarseRevocableSession );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING))
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _parseClientPlatform = LuaAPI.lua_tostring(L, 3);
|
|
string _parseClientVersion = LuaAPI.lua_tostring(L, 4);
|
|
|
|
gen_to_be_invoked.SetServerUrl( _url, _parseClientPlatform, _parseClientVersion );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFParseClientManager.SetServerUrl!");
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaCheckPurchaseOrderCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<string> _callback = translator.GetDelegate<System.Action<string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaCheckPurchaseOrderCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaCheckPurchaseConsumeCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<string> _callback = translator.GetDelegate<System.Action<string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaCheckPurchaseConsumeCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaCheckPurchaseIOSOrderCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<string> _callback = translator.GetDelegate<System.Action<string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaCheckPurchaseIOSOrderCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaCheckPurchaseIOSConsumeCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<string> _callback = translator.GetDelegate<System.Action<string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaCheckPurchaseIOSConsumeCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaFirstRequestCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<string> _callback = translator.GetDelegate<System.Action<string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaFirstRequestCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UserLogin(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _loginiInfo = LuaAPI.lua_tostring(L, 2);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 3);
|
|
|
|
gen_to_be_invoked.UserLogin( _loginiInfo, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UserTokenLogin(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _token = LuaAPI.lua_tostring(L, 2);
|
|
string _loginiInfo = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.UserTokenLogin( _token, _loginiInfo, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UsersPost(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _key = LuaAPI.lua_tostring(L, 2);
|
|
string _body = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.UsersPost( _key, _body, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UsersGet(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _key = LuaAPI.lua_tostring(L, 2);
|
|
string _body = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.UsersGet( _key, _body, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UsersPut(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _key = LuaAPI.lua_tostring(L, 2);
|
|
string _body = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.UsersPut( _key, _body, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UsersDel(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _key = LuaAPI.lua_tostring(L, 2);
|
|
string _body = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.UsersDel( _key, _body, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_CheckPurchaseGPOrder(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _purchase = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.CheckPurchaseGPOrder( _purchase );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_CheckPurchaseGPConsume(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _purchase = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.CheckPurchaseGPConsume( _purchase );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_FirstRequestAction(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _info = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.FirstRequestAction( _info );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_CheckPurchaseIOSOrder(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _purchase = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.CheckPurchaseIOSOrder( _purchase );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_CheckPurchaseIOSConsume(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _purchase = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.CheckPurchaseIOSConsume( _purchase );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OnCheckPurchaseGPOrder(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _msg = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.OnCheckPurchaseGPOrder( _msg );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OnCheckPurchaseGPConsume(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _msg = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.OnCheckPurchaseGPConsume( _msg );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OnFirstRequestAction(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _msg = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.OnFirstRequestAction( _msg );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OnCheckPurchaseIOSOrder(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _msg = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.OnCheckPurchaseIOSOrder( _msg );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OnCheckPurchaseIOSConsume(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _msg = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.OnCheckPurchaseIOSConsume( _msg );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_FunctionPost(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _body = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.FunctionPost( _url, _body, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_StorageWrite(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _key = LuaAPI.lua_tostring(L, 2);
|
|
string _body = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.StorageWrite( _key, _body, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_StorageRead(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _key = LuaAPI.lua_tostring(L, 2);
|
|
string _body = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.StorageRead( _key, _body, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_StorageUpdate(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _key = LuaAPI.lua_tostring(L, 2);
|
|
string _body = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.StorageUpdate( _key, _body, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_StorageDelete(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _key = LuaAPI.lua_tostring(L, 2);
|
|
string _deleteKeys = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<string> _complete = translator.GetDelegate<System.Action<string>>(L, 4);
|
|
|
|
gen_to_be_invoked.StorageDelete( _key, _deleteKeys, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Put(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _body = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<int, string> _complete = translator.GetDelegate<System.Action<int, string>>(L, 4);
|
|
|
|
gen_to_be_invoked.Put( _url, _body, _complete );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaCheckPurchaseOrderCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaCheckPurchaseOrderCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaCheckPurchaseConsumeCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaCheckPurchaseConsumeCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaFirstRequestCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaFirstRequestCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaCheckPurchaseIOSOrderCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaCheckPurchaseIOSOrderCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaCheckPurchaseIOSConsumeCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaCheckPurchaseIOSConsumeCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_luaCheckPurchaseOrderCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaCheckPurchaseOrderCallback = translator.GetDelegate<System.Action<string>>(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_luaCheckPurchaseConsumeCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaCheckPurchaseConsumeCallback = translator.GetDelegate<System.Action<string>>(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_luaFirstRequestCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaFirstRequestCallback = translator.GetDelegate<System.Action<string>>(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_luaCheckPurchaseIOSOrderCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaCheckPurchaseIOSOrderCallback = translator.GetDelegate<System.Action<string>>(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_luaCheckPurchaseIOSConsumeCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFParseClientManager gen_to_be_invoked = (BF.BFParseClientManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaCheckPurchaseIOSConsumeCallback = translator.GetDelegate<System.Action<string>>(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|