Example #1
0
 static int SetType(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.Handle      obj  = (UI.Handle)ToLua.CheckObject(L, 1, typeof(UI.Handle));
         UI.Handle.Type arg0 = (UI.Handle.Type)ToLua.CheckObject(L, 2, typeof(UI.Handle.Type));
         obj.SetType(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int AddPrivateHandle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UI.StateHandle obj  = (UI.StateHandle)ToLua.CheckObject(L, 1, typeof(UI.StateHandle));
         int            arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         UI.Handle.Type arg1 = (UI.Handle.Type)ToLua.CheckObject(L, 3, typeof(UI.Handle.Type));
         obj.AddPrivateHandle(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
    static int get_m_type(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle      obj = (UI.Handle)o;
            UI.Handle.Type ret = obj.m_type;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_type on a nil value" : e.Message));
        }
    }
Example #4
0
    static int set_m_type(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.Handle      obj  = (UI.Handle)o;
            UI.Handle.Type arg0 = (UI.Handle.Type)ToLua.CheckObject(L, 2, typeof(UI.Handle.Type));
            obj.m_type = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_type on a nil value" : e.Message));
        }
    }
Example #5
0
 static int AddSubHandle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         UI.SequenceHandle     obj  = (UI.SequenceHandle)ToLua.CheckObject(L, 1, typeof(UI.SequenceHandle));
         UnityEngine.Component arg0 = (UnityEngine.Component)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Component));
         UI.Handle             arg1 = (UI.Handle)ToLua.CheckObject(L, 3, typeof(UI.Handle));
         UI.Handle.Type        arg2 = (UI.Handle.Type)ToLua.CheckObject(L, 4, typeof(UI.Handle.Type));
         float arg3 = (float)LuaDLL.luaL_checknumber(L, 5);
         obj.AddSubHandle(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }