-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMapRegionCallback.cs
More file actions
21 lines (20 loc) · 936 Bytes
/
MapRegionCallback.cs
File metadata and controls
21 lines (20 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using SS.Core.Map;
namespace SS.Core.ComponentCallbacks
{
/// <summary>
/// Helper class for the <see cref="MapRegionDelegate"/> callback.
/// </summary>
[CallbackHelper]
public static partial class MapRegionCallback
{
/// <summary>
/// Delegate for a callback that is invoked when a <see cref="Player"/> enters or exits a <see cref="MapRegion"/>.
/// </summary>
/// <param name="player">The player entering or exiting a region.</param>
/// <param name="region">The region being entered or exited.</param>
/// <param name="x">The x-coordinate of the player.</param>
/// <param name="y">The y-coordinate of the player.</param>
/// <param name="entering">True if the region is being entered. False if being exited.</param>
public delegate void MapRegionDelegate(Player player, MapRegion region, short x, short y, bool entering);
}
}