62 lines
1.4 KiB
C#
62 lines
1.4 KiB
C#
//this source code was auto-generated by tolua#, do not modify it
|
|
using System;
|
|
using LuaInterface;
|
|
|
|
public class EmojiDitcWrap
|
|
{
|
|
public static void Register(LuaState L)
|
|
{
|
|
L.BeginStaticLibs("EmojiDitc");
|
|
L.RegFunction("AddEmoji", AddEmoji);
|
|
L.RegVar("EmojiesDitc", get_EmojiesDitc, set_EmojiesDitc);
|
|
L.EndStaticLibs();
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int AddEmoji(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 1);
|
|
string arg1 = ToLua.CheckString(L, 2);
|
|
EmojiDitc.AddEmoji(arg0, arg1);
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_EmojiesDitc(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.PushSealed(L, EmojiDitc.EmojiesDitc);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_EmojiesDitc(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
System.Collections.Generic.Dictionary<uint,FairyGUI.Emoji> arg0 = (System.Collections.Generic.Dictionary<uint,FairyGUI.Emoji>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.Dictionary<uint,FairyGUI.Emoji>));
|
|
EmojiDitc.EmojiesDitc = arg0;
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
}
|
|
|