Example #1
0
    static int GetBoundsLocal(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                UnityEngine.GridLayout obj  = (UnityEngine.GridLayout)ToLua.CheckObject <UnityEngine.GridLayout>(L, 1);
                UnityEngine.Vector3Int arg0 = StackTraits <UnityEngine.Vector3Int> .Check(L, 2);

                UnityEngine.Bounds o = obj.GetBoundsLocal(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 3)
            {
                UnityEngine.GridLayout obj  = (UnityEngine.GridLayout)ToLua.CheckObject <UnityEngine.GridLayout>(L, 1);
                UnityEngine.Vector3    arg0 = ToLua.ToVector3(L, 2);
                UnityEngine.Vector3    arg1 = ToLua.ToVector3(L, 3);
                UnityEngine.Bounds     o    = obj.GetBoundsLocal(arg0, arg1);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.GridLayout.GetBoundsLocal"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Example #2
0
 static int GetLayoutCellCenter(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.GridLayout obj = (UnityEngine.GridLayout)ToLua.CheckObject <UnityEngine.GridLayout>(L, 1);
         UnityEngine.Vector3    o   = obj.GetLayoutCellCenter();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #3
0
 static int WorldToLocal(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.GridLayout obj  = (UnityEngine.GridLayout)ToLua.CheckObject <UnityEngine.GridLayout>(L, 1);
         UnityEngine.Vector3    arg0 = ToLua.ToVector3(L, 2);
         UnityEngine.Vector3    o    = obj.WorldToLocal(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #4
0
    static int CellToLocal(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            UnityEngine.GridLayout obj  = (UnityEngine.GridLayout)ToLua.CheckObject <UnityEngine.GridLayout>(L, 1);
            UnityEngine.Vector3Int arg0 = StackTraits <UnityEngine.Vector3Int> .Check(L, 2);

            UnityEngine.Vector3 o = obj.CellToLocal(arg0);
            ToLua.Push(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Example #5
0
    static int get_cellSwizzle(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.GridLayout             obj = (UnityEngine.GridLayout)o;
            UnityEngine.GridLayout.CellSwizzle ret = obj.cellSwizzle;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cellSwizzle on a nil value"));
        }
    }
Example #6
0
    static int _CreateUnityEngine_GridLayout(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UnityEngine.GridLayout obj = new UnityEngine.GridLayout();
                ToLua.Push(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.GridLayout.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Example #7
0
 public virtual void MoveEnd(GridLayout gridLayout, GameObject brushTarget, BoundsInt position)
 {
 }
Example #8
0
 public virtual void Move(GridLayout gridLayout, GameObject brushTarget, BoundsInt from, BoundsInt to)
 {
 }
Example #9
0
 public virtual void Pick(GridLayout gridLayout, GameObject brushTarget, BoundsInt position, Vector3Int pivot)
 {
 }
Example #10
0
 public virtual void FloodFill(GridLayout gridLayout, GameObject brushTarget, Vector3Int position)
 {
 }
Example #11
0
 public virtual void Erase(GridLayout gridLayout, GameObject brushTarget, Vector3Int position)
 {
 }