ace/Source/ACE.Server/Entity/Adjacency.cs
gmriggs 1b504ff5f0 Adding landblock unloading system, and player corpses (#831)
* Adding landblock unloading system, and player corpses

* Adding dropped items to player corpse

* Adding landblock unloading system, and player corpses

* Adding dropped items to player corpse

* Adding permaload flag, and updating TimeToRot on landblock unload

* Adding corpse looting permissions

* Adding stack sizes

* Cleanup
2018-06-29 12:35:57 -07:00

44 lines
1.3 KiB
C#

namespace ACE.Server.Entity
{
/// <summary>
/// not sure if this is going to be used. i thought it was, but now i'm not sure
/// </summary>
public enum Adjacency
{
NorthWest = 0,
North = 1,
NorthEast = 2,
East = 3,
SouthEast = 4,
South = 5,
SouthWest = 6,
West = 7
}
public static class AdjacencyHelper
{
public static Adjacency? GetInverse(Adjacency adj)
{
switch (adj)
{
case Adjacency.NorthWest:
return Adjacency.SouthEast;
case Adjacency.North:
return Adjacency.South;
case Adjacency.NorthEast:
return Adjacency.SouthWest;
case Adjacency.East:
return Adjacency.West;
case Adjacency.SouthEast:
return Adjacency.NorthWest;
case Adjacency.South:
return Adjacency.North;
case Adjacency.SouthWest:
return Adjacency.NorthEast;
case Adjacency.West:
return Adjacency.East;
}
return null;
}
}
}