C# Класс Ensage.Common.Extensions.EntityExtensions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ClosestCamp ( this entity ) : JungleCamp

The closest camp.

Distance2D ( this entity1, System.Entity entity2 ) : float

Distance between two entities

Distance2D ( this p1, TrackingProjectile p2 ) : float

The distance between two projectiles

Distance2D ( this entity, System.Vector3 vector ) : float

Distance between a entity and a vector

FindAngleBetween ( this entity, System.Vector3 vector, bool radian = false ) : float

Angle between a entity and a vector in degrees

FindAngleForTurnTime ( this unit, System.Vector3 position ) : float

The find angle for turn time.

FindAngleR ( this entity ) : float

The find angle r.

GetTurnAmount ( this entity, float time ) : double

Returns in radians how much can entity turn during given time

Init ( ) : void

The init.

IsIllusion ( this entity ) : bool

The is illusion.

Spellbook ( this entity ) : Spellbook

The spell book.

Vector2FromPolarAngle ( this entity, float delta = 0f, float radial = 1f ) : System.Vector2

The vector 2 from polar angle.

Vector3FromPolarAngle ( this entity, float delta = 0f, float radial = 1f ) : System.Vector3

The vector 3 from polar angle.

Приватные методы

Метод Описание
GetTurnRate ( this entity ) : double
GetTurnTime ( this entity, System.Entity entity2 ) : double
GetTurnTime ( this entity, System.Vector3 position ) : double

Описание методов

ClosestCamp() публичный статический Метод

The closest camp.
public static ClosestCamp ( this entity ) : JungleCamp
entity this /// The entity. ///
Результат JungleCamp

Distance2D() публичный статический Метод

Distance between two entities
public static Distance2D ( this entity1, System.Entity entity2 ) : float
entity1 this /// The entity 1. ///
entity2 System.Entity /// The entity 2. ///
Результат float

Distance2D() публичный статический Метод

The distance between two projectiles
public static Distance2D ( this p1, TrackingProjectile p2 ) : float
p1 this /// The p 1. ///
p2 TrackingProjectile /// The p 2. ///
Результат float

Distance2D() публичный статический Метод

Distance between a entity and a vector
public static Distance2D ( this entity, System.Vector3 vector ) : float
entity this /// The entity. ///
vector System.Vector3 /// The vector. ///
Результат float

FindAngleBetween() публичный статический Метод

Angle between a entity and a vector in degrees
public static FindAngleBetween ( this entity, System.Vector3 vector, bool radian = false ) : float
entity this /// The entity. ///
vector System.Vector3 /// The vector. ///
radian bool /// The radian. ///
Результат float

FindAngleForTurnTime() публичный статический Метод

The find angle for turn time.
public static FindAngleForTurnTime ( this unit, System.Vector3 position ) : float
unit this /// The unit. ///
position System.Vector3 /// The position. ///
Результат float

FindAngleR() публичный статический Метод

The find angle r.
public static FindAngleR ( this entity ) : float
entity this /// The entity. ///
Результат float

GetTurnAmount() публичный статический Метод

Returns in radians how much can entity turn during given time
public static GetTurnAmount ( this entity, float time ) : double
entity this /// The entity. ///
time float /// The time. ///
Результат double

Init() публичный статический Метод

The init.
public static Init ( ) : void
Результат void

IsIllusion() публичный статический Метод

The is illusion.
public static IsIllusion ( this entity ) : bool
entity this /// The entity. ///
Результат bool

Spellbook() публичный статический Метод

The spell book.
public static Spellbook ( this entity ) : Spellbook
entity this /// The entity. ///
Результат Spellbook

Vector2FromPolarAngle() публичный статический Метод

The vector 2 from polar angle.
public static Vector2FromPolarAngle ( this entity, float delta = 0f, float radial = 1f ) : System.Vector2
entity this /// The entity. ///
delta float /// The delta. ///
radial float /// The radial. ///
Результат System.Vector2

Vector3FromPolarAngle() публичный статический Метод

The vector 3 from polar angle.
public static Vector3FromPolarAngle ( this entity, float delta = 0f, float radial = 1f ) : System.Vector3
entity this /// The entity. ///
delta float /// The delta. ///
radial float /// The radial. ///
Результат System.Vector3