示例#1
0
    static int set_OnGetSDKInfo(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SDKInterface obj = (SDKInterface)o;
            SDKInterface.GetSDKInfoHandler arg0 = (SDKInterface.GetSDKInfoHandler)ToLua.CheckDelegate <SDKInterface.GetSDKInfoHandler>(L, 2);
            obj.OnGetSDKInfo = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnGetSDKInfo on a nil value"));
        }
    }
示例#2
0
    static int get_OnGetSDKInfo(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SDKInterface obj = (SDKInterface)o;
            SDKInterface.GetSDKInfoHandler ret = obj.OnGetSDKInfo;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnGetSDKInfo on a nil value"));
        }
    }