/// <param name="doorLength">See the <seealso cref="DoorLength"/> property.</param>
        /// <param name="cornerDistance">See the <seealso cref="CornerDistance"/> property.</param>
        /// <param name="doorSocket">See the <seealso cref="DoorSocket"/> property.</param>
        public SimpleDoorModeGrid2D(int doorLength, int cornerDistance, IDoorSocket doorSocket = null)
        {
            if (cornerDistance < 0)
            {
                throw new ArgumentException("Minimum overlap must not be less than 0.", nameof(cornerDistance));
            }

            DoorLength     = doorLength;
            CornerDistance = cornerDistance;
            DoorSocket     = doorSocket;
        }
Пример #2
0
 /// <param name="from">See the <see cref="From"/> property.</param>
 /// <param name="to">See the <see cref="To"/> property.</param>
 /// <param name="socket">See the <see cref="Socket"/> property.</param>
 public DoorGrid2D(Vector2Int from, Vector2Int to, IDoorSocket socket = null)
 {
     From   = from;
     To     = to;
     Socket = socket;
 }
Пример #3
0
 /// <param name="line">See the <see cref="Line"/> property.</param>
 /// <param name="length">See the <see cref="Length"/> property.</param>
 /// <param name="doorSocket">See the <see cref="DoorSocket"/> property.</param>
 public DoorLineGrid2D(OrthogonalLineGrid2D line, int length, IDoorSocket doorSocket)
 {
     Line       = line;
     Length     = length;
     DoorSocket = doorSocket;
 }