static public int ctor__Int32__Int32__Int32__Int32__Int32__Int32_s(IntPtr l)
 {
     try {
         UnityEngine.BoundsInt o;
         System.Int32          a1;
         checkType(l, 1, out a1);
         System.Int32 a2;
         checkType(l, 2, out a2);
         System.Int32 a3;
         checkType(l, 3, out a3);
         System.Int32 a4;
         checkType(l, 4, out a4);
         System.Int32 a5;
         checkType(l, 5, out a5);
         System.Int32 a6;
         checkType(l, 6, out a6);
         o = new UnityEngine.BoundsInt(a1, a2, a3, a4, a5, a6);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int ctor_s(IntPtr l)
 {
     try {
         UnityEngine.BoundsInt o;
         o = new UnityEngine.BoundsInt();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 3
0
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.BoundsInt o;
         if (argc == 7)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             System.Int32 a3;
             checkType(l, 4, out a3);
             System.Int32 a4;
             checkType(l, 5, out a4);
             System.Int32 a5;
             checkType(l, 6, out a5);
             System.Int32 a6;
             checkType(l, 7, out a6);
             o = new UnityEngine.BoundsInt(a1, a2, a3, a4, a5, a6);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 3)
         {
             UnityEngine.Vector3Int a1;
             checkValueType(l, 2, out a1);
             UnityEngine.Vector3Int a2;
             checkValueType(l, 3, out a2);
             o = new UnityEngine.BoundsInt(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 0)
         {
             o = new UnityEngine.BoundsInt();
             pushValue(l, true);
             pushObject(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 4
0
    static int get_cellBounds(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.Tilemaps.Tilemap obj = (UnityEngine.Tilemaps.Tilemap)o;
            UnityEngine.BoundsInt        ret = obj.cellBounds;
            ToLua.PushValue(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cellBounds on a nil value"));
        }
    }
 static public int ctor__Vector3Int__Vector3Int_s(IntPtr l)
 {
     try {
         UnityEngine.BoundsInt  o;
         UnityEngine.Vector3Int a1;
         checkValueType(l, 1, out a1);
         UnityEngine.Vector3Int a2;
         checkValueType(l, 2, out a2);
         o = new UnityEngine.BoundsInt(a1, a2);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 6
0
    static int SetTilesBlock(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 3);
            UnityEngine.Tilemaps.Tilemap obj  = (UnityEngine.Tilemaps.Tilemap)ToLua.CheckObject(L, 1, typeof(UnityEngine.Tilemaps.Tilemap));
            UnityEngine.BoundsInt        arg0 = StackTraits <UnityEngine.BoundsInt> .Check(L, 2);

            UnityEngine.Tilemaps.TileBase[] arg1 = ToLua.CheckObjectArray <UnityEngine.Tilemaps.TileBase>(L, 3);
            obj.SetTilesBlock(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Exemplo n.º 7
0
    static int GetTilesBlock(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            UnityEngine.Tilemaps.Tilemap obj  = (UnityEngine.Tilemaps.Tilemap)ToLua.CheckObject(L, 1, typeof(UnityEngine.Tilemaps.Tilemap));
            UnityEngine.BoundsInt        arg0 = StackTraits <UnityEngine.BoundsInt> .Check(L, 2);

            UnityEngine.Tilemaps.TileBase[] o = obj.GetTilesBlock(arg0);
            ToLua.Push(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.BoundsInt o;
         if (argc == 7)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             System.Int32 a3;
             checkType(l, 4, out a3);
             System.Int32 a4;
             checkType(l, 5, out a4);
             System.Int32 a5;
             checkType(l, 6, out a5);
             System.Int32 a6;
             checkType(l, 7, out a6);
             o = new UnityEngine.BoundsInt(a1, a2, a3, a4, a5, a6);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 3)
         {
             UnityEngine.Vector3Int a1;
             checkValueType(l, 2, out a1);
             UnityEngine.Vector3Int a2;
             checkValueType(l, 3, out a2);
             o = new UnityEngine.BoundsInt(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 0)
         {
             o = new UnityEngine.BoundsInt();
             pushValue(l, true);
             pushObject(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Exemplo n.º 9
0
 public virtual void MoveEnd(GridLayout gridLayout, GameObject brushTarget, BoundsInt position)
 {
 }
Exemplo n.º 10
0
 public virtual void Move(GridLayout gridLayout, GameObject brushTarget, BoundsInt from, BoundsInt to)
 {
 }
Exemplo n.º 11
0
 public virtual void Pick(GridLayout gridLayout, GameObject brushTarget, BoundsInt position, Vector3Int pivot)
 {
 }