Class DirectionExtensions
Static class that contains extension methods for a Direction.
Inheritance
System.Object
DirectionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Common.Contracts.Extensions
Assembly: Fibula.Common.Contracts.dll
Syntax
public static class DirectionExtensions
Methods
| Improve this Doc View SourceGetClientSafeDirection(Direction)
Converts given direction into one of the four directions safe to send to the Tibia client.
Declaration
public static Direction GetClientSafeDirection(this Direction direction)
Parameters
Type | Name | Description |
---|---|---|
Direction | direction | The direction to convert. |
Returns
Type | Description |
---|---|
Direction | The client-safe direction. |
IsDiagonal(Direction)
Determines if this direction is a diagonal one.
Declaration
public static bool IsDiagonal(this Direction direction)
Parameters
Type | Name | Description |
---|---|---|
Direction | direction | The direction to evaluate. |
Returns
Type | Description |
---|---|
System.Boolean | True if the direction is diagonal, false otherwise. |