Class Prediction.LS
Ported LeagueSharp Prediction.
Inheritance
Inherited Members
Namespace: Oasys.SDK
Assembly: Oasys.SDK.dll
Syntax
public static class LS
Methods
GetPrediction(GameObjectBase, Single)
Gets the prediction.
Declaration
public static LS.PredictionOutput GetPrediction(GameObjectBase target, float delay)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | delay | The skillshot delay in seconds. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
GetPrediction(GameObjectBase, Single, Single)
Gets the prediction.
Declaration
public static LS.PredictionOutput GetPrediction(GameObjectBase target, float delay, float radius)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
GetPrediction(GameObjectBase, Single, Single, Single)
Gets the prediction.
Declaration
public static LS.PredictionOutput GetPrediction(GameObjectBase target, float delay, float radius, float speed)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | speed | The skillshot speed in units per second. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
GetPrediction(GameObjectBase, Single, Single, Single, LS.CollisionableObjects[])
Gets the prediction.
Declaration
public static LS.PredictionOutput GetPrediction(GameObjectBase target, float delay, float radius, float speed, LS.CollisionableObjects[] collisionable)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | speed | The skillshot speed in units per second. |
LS.CollisionableObjects[] | collisionable | The collisionable object types. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
GetPrediction(LS.PredictionInput)
Gets the prediction.
Declaration
public static LS.PredictionOutput GetPrediction(LS.PredictionInput input)
Parameters
Type | Name | Description |
---|---|---|
LS.PredictionInput | input | The prediction data to predict. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictCircularMissile(GameObjectBase, Single, Int32, Single, Single)
Predict circular cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictCircularMissile(GameObjectBase target, float range, int radius, float delay, float speed)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Int32 | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictCircularMissile(GameObjectBase, Single, Int32, Single, Single, Vector3)
Predict circular cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictCircularMissile(GameObjectBase target, float range, int radius, float delay, float speed, Vector3 sourcePosition)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Int32 | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
SharpDX.Vector3 | sourcePosition | The position from where the skillshot missile gets fired. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictCircularMissile(GameObjectBase, Single, Single, Single, Single)
Predict circular cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictCircularMissile(GameObjectBase target, float range, float radius, float delay, float speed)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Single | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictCircularMissile(GameObjectBase, Single, Single, Single, Single, Vector3)
Predict circular cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictCircularMissile(GameObjectBase target, float range, float radius, float delay, float speed, Vector3 sourcePosition)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Single | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
SharpDX.Vector3 | sourcePosition | The position from where the skillshot missile gets fired. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictConeSpell(GameObjectBase, Single, Int32, Single, Single)
Predict cone cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictConeSpell(GameObjectBase target, float range, int angle, float delay, float speed)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Int32 | angle | The skillshot angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictConeSpell(GameObjectBase, Single, Int32, Single, Single, Vector3)
Predict cone cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictConeSpell(GameObjectBase target, float range, int angle, float delay, float speed, Vector3 sourcePosition)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Int32 | angle | The skillshot angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
SharpDX.Vector3 | sourcePosition | The position from where the skillshot missile gets fired. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictConeSpell(GameObjectBase, Single, Single, Single, Single)
Predict cone cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictConeSpell(GameObjectBase target, float range, float angle, float delay, float speed)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Single | angle | The skillshot angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictConeSpell(GameObjectBase, Single, Single, Single, Single, Vector3)
Predict cone cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictConeSpell(GameObjectBase target, float range, float angle, float delay, float speed, Vector3 sourcePosition)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Single | angle | The skillshot angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
SharpDX.Vector3 | sourcePosition | The position from where the skillshot missile gets fired. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictLinearMissile(GameObjectBase, Single, Int32, Single, Single)
Predict linear cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictLinearMissile(GameObjectBase target, float range, int radius, float delay, float speed)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Int32 | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictLinearMissile(GameObjectBase, Single, Int32, Single, Single, Vector3)
Predict linear cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictLinearMissile(GameObjectBase target, float range, int radius, float delay, float speed, Vector3 sourcePosition)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Int32 | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
SharpDX.Vector3 | sourcePosition | The position from where the skillshot missile gets fired. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictLinearMissile(GameObjectBase, Single, Single, Single, Single)
Predict linear cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictLinearMissile(GameObjectBase target, float range, float radius, float delay, float speed)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Single | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |
PredictLinearMissile(GameObjectBase, Single, Single, Single, Single, Vector3)
Predict linear cast position and collision for a specific target.
Declaration
public static LS.PredictionOutput PredictLinearMissile(GameObjectBase target, float range, float radius, float delay, float speed, Vector3 sourcePosition)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The unit that the prediction will made for. |
System.Single | range | The skillshot range in units. |
System.Single | radius | The skillshot width's radius or the angle in case of the cone skillshots. |
System.Single | delay | The skillshot delay in seconds. |
System.Single | speed | The skillshot speed in units per second. |
SharpDX.Vector3 | sourcePosition | The position from where the skillshot missile gets fired. |
Returns
Type | Description |
---|---|
LS.PredictionOutput | The output after calculating the prediction. |