GetSelection() публичный Метод

public GetSelection ( ) : List
Результат List
Пример #1
0
    static int GetSelection(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                FairyGUI.GList obj = (FairyGUI.GList)ToLua.CheckObject <FairyGUI.GList>(L, 1);
                System.Collections.Generic.List <int> o = obj.GetSelection();
                ToLua.PushSealed(L, o);
                return(1);
            }
            else if (count == 2)
            {
                FairyGUI.GList obj = (FairyGUI.GList)ToLua.CheckObject <FairyGUI.GList>(L, 1);
                System.Collections.Generic.List <int> arg0 = (System.Collections.Generic.List <int>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <int>));
                System.Collections.Generic.List <int> o    = obj.GetSelection(arg0);
                ToLua.PushSealed(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.GList.GetSelection"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Пример #2
0
 static public int GetSelection(IntPtr l)
 {
     try {
         FairyGUI.GList self = (FairyGUI.GList)checkSelf(l);
         var            ret  = self.GetSelection();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int GetSelection(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.GList obj = (FairyGUI.GList)ToLua.CheckObject(L, 1, typeof(FairyGUI.GList));
         System.Collections.Generic.List <int> o = obj.GetSelection();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }