Beispiel #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));
        }
    }
Beispiel #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));
     }
 }
Beispiel #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));
     }
 }
Beispiel #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));
        }
    }
Beispiel #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"));
        }
    }
Beispiel #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));
        }
    }
Beispiel #7
0
 public virtual void MoveEnd(GridLayout gridLayout, GameObject brushTarget, BoundsInt position)
 {
 }
Beispiel #8
0
 public virtual void Move(GridLayout gridLayout, GameObject brushTarget, BoundsInt from, BoundsInt to)
 {
 }
Beispiel #9
0
 public virtual void Pick(GridLayout gridLayout, GameObject brushTarget, BoundsInt position, Vector3Int pivot)
 {
 }
Beispiel #10
0
 public virtual void FloodFill(GridLayout gridLayout, GameObject brushTarget, Vector3Int position)
 {
 }
Beispiel #11
0
 public virtual void Erase(GridLayout gridLayout, GameObject brushTarget, Vector3Int position)
 {
 }