93 lines
2.4 KiB
C#
93 lines
2.4 KiB
C#
//this source code was auto-generated by tolua#, do not modify it
|
|
using System;
|
|
using LuaInterface;
|
|
|
|
public class QRCodePictureWrap
|
|
{
|
|
public static void Register(LuaState L)
|
|
{
|
|
L.BeginStaticLibs("QRCodePicture");
|
|
L.RegFunction("Take", Take);
|
|
L.RegFunction("GenerateQRcode", GenerateQRcode);
|
|
L.RegFunction("CombanitePicture", CombanitePicture);
|
|
L.EndStaticLibs();
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int Take(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
int count = LuaDLL.lua_gettop(L);
|
|
|
|
if (count == 4)
|
|
{
|
|
string arg0 = ToLua.CheckString(L, 1);
|
|
string arg1 = ToLua.CheckString(L, 2);
|
|
string arg2 = ToLua.CheckString(L, 3);
|
|
LuaFunction arg3 = ToLua.CheckLuaFunction(L, 4);
|
|
QRCodePicture.Take(arg0, arg1, arg2, arg3);
|
|
return 0;
|
|
}
|
|
else if (count == 5)
|
|
{
|
|
string arg0 = ToLua.CheckString(L, 1);
|
|
string arg1 = ToLua.CheckString(L, 2);
|
|
string arg2 = ToLua.CheckString(L, 3);
|
|
LuaFunction arg3 = ToLua.CheckLuaFunction(L, 4);
|
|
bool arg4 = LuaDLL.luaL_checkboolean(L, 5);
|
|
QRCodePicture.Take(arg0, arg1, arg2, arg3, arg4);
|
|
return 0;
|
|
}
|
|
else
|
|
{
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: QRCodePicture.Take");
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GenerateQRcode(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 3);
|
|
string arg0 = ToLua.CheckString(L, 1);
|
|
int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|
int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
|
|
UnityEngine.Texture2D o = QRCodePicture.GenerateQRcode(arg0, arg1, arg2);
|
|
ToLua.PushSealed(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int CombanitePicture(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 5);
|
|
UnityEngine.Texture2D arg0 = (UnityEngine.Texture2D)ToLua.CheckObject(L, 1, typeof(UnityEngine.Texture2D));
|
|
UnityEngine.Texture2D arg1 = (UnityEngine.Texture2D)ToLua.CheckObject(L, 2, typeof(UnityEngine.Texture2D));
|
|
int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
|
|
int arg3 = (int)LuaDLL.luaL_checknumber(L, 4);
|
|
string arg4 = ToLua.CheckString(L, 5);
|
|
QRCodePicture.CombanitePicture(arg0, arg1, arg2, arg3, arg4);
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
}
|
|
|