// // Licensed under the MIT License. See LICENSE file in the project root for full license information. // namespace MUnique.OpenMU.GameLogic; using MUnique.OpenMU.Pathfinding; /// /// Extensions for . /// public static class ExitGateExtensions { /// /// Gets a random point at the exit gate. /// /// The gate. /// The random point. public static Point GetRandomPoint(this ExitGate gate) { return new Point((byte)Rand.NextInt(gate.X1, gate.X2), (byte)Rand.NextInt(gate.Y1, gate.Y2)); } }