mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* 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
44 lines
1.3 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|