Class SDKSpell
SDKSpell instance.
Inheritance
Inherited Members
Namespace: Oasys.SDK
Assembly: Oasys.SDK.dll
Syntax
public class SDKSpell
Constructors
SDKSpell(CastSlot, SpellSlot)
SDKSpell instance.
Declaration
public SDKSpell(CastSlot castSlot, SpellSlot spellSlot)
Parameters
Type | Name | Description |
---|---|---|
CastSlot | castSlot | The castslot. |
SpellSlot | spellSlot | The spellslot. |
Properties
AllowCancelBasicAttack
Allow to cancel basicattack. Standard value = false.
Declaration
public Func<bool> AllowCancelBasicAttack { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Boolean> |
AllowCastInDirection
Allow to cast the spell in a direction. Standard value = false.
Declaration
public Func<bool> AllowCastInDirection { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Boolean> |
AllowCastOnMap
Allow to cast the spell on minimap. Standard value = false.
Declaration
public Func<bool> AllowCastOnMap { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Boolean> |
AllowCollision
Should allow collision or not. Standard value = true.
Declaration
public Func<GameObjectBase, IEnumerable<GameObjectBase>, bool> AllowCollision { get; set; }
Property Value
Type | Description |
---|---|
System.Func<GameObjectBase, System.Collections.Generic.IEnumerable<GameObjectBase>, System.Boolean> |
CastPosition
The castposition on screen. Standard value = predicted position or targets own position on screen. Override this to change cast position based on the predicted position. Ex Thresh E backwards.
Declaration
public Func<Vector2, Vector2> CastPosition { get; set; }
Property Value
Type | Description |
---|---|
System.Func<SharpDX.Vector2, SharpDX.Vector2> |
CastSlot
The castslot.
Declaration
public CastSlot CastSlot { get; }
Property Value
Type | Description |
---|---|
CastSlot |
ChargeTimer
Chargetimer to control chargespell time.
Declaration
public virtual Stopwatch ChargeTimer { get; }
Property Value
Type | Description |
---|---|
System.Diagnostics.Stopwatch |
Damage
Damage calculation. Standard value = 0.
Declaration
public Func<GameObjectBase, SpellClass, float> Damage { get; set; }
Property Value
Type | Description |
---|---|
System.Func<GameObjectBase, SpellClass, System.Single> |
Delay
The spell delay/animation time/cast time. Standard value = 0.25.
Declaration
public Func<float> Delay { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Single> |
From
The position to cast from. Standard value = UnitManager.MyChampion.AIManager.ServerPosition.
Declaration
public Func<Vector3> From { get; set; }
Property Value
Type | Description |
---|---|
System.Func<SharpDX.Vector3> |
IsChannel
Is a channel spell. Standard value = false.
Declaration
public Func<bool> IsChannel { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Boolean> |
IsCharge
Is a charge spell. Standard value = false.
Declaration
public Func<bool> IsCharge { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Boolean> |
IsEnabled
Defines if a spell is enabled. Fx: enabled by menu. Standard value = true.
Declaration
public Func<bool> IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Boolean> |
IsSpellReady
Declaration
public Func<SpellClass, float, int, bool> IsSpellReady { get; set; }
Property Value
Type | Description |
---|---|
System.Func<SpellClass, System.Single, System.Int32, System.Boolean> |
IsTargetted
Is a targetted spell. Standard value = false.
Declaration
public Func<bool> IsTargetted { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Boolean> |
MinimumCharges
The minimum charges for a spell to be used. Standard value = 0.
Declaration
public Func<int> MinimumCharges { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Int32> |
MinimumHitChance
The minimum hit chance. Standard value = HitChance.High.
Declaration
public Func<Prediction.MenuSelected.HitChance> MinimumHitChance { get; set; }
Property Value
Type | Description |
---|---|
System.Func<Prediction.MenuSelected.HitChance> |
MinimumMana
The minimum mana for a spell to be used. Standard value = 0.
Declaration
public Func<float> MinimumMana { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Single> |
PredictionMode
The prediction type/mode. Standard value = PredictionType.Line.
Declaration
public Func<Prediction.MenuSelected.PredictionType> PredictionMode { get; set; }
Property Value
Type | Description |
---|---|
System.Func<Prediction.MenuSelected.PredictionType> |
Radius
The spell radius/width/angle. Standard value = 0.
Declaration
public Func<float> Radius { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Single> |
Range
The spell range. Standard value = 0.
Declaration
public Func<float> Range { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Single> |
RenderSpellUsage
Render method. Fx: Karthus ult can kill x, y, z.
Declaration
public Action RenderSpellUsage { get; set; }
Property Value
Type | Description |
---|---|
System.Action |
ShouldCast
Should cast spell. Standard value = target is not null.
Declaration
public Func<Orbwalker.OrbWalkingModeType, GameObjectBase, SpellClass, float, bool> ShouldCast { get; set; }
Property Value
Type | Description |
---|---|
System.Func<Orbwalker.OrbWalkingModeType, GameObjectBase, SpellClass, System.Single, System.Boolean> |
Speed
The spell speed. Standard value = 0.
Declaration
public Func<float> Speed { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Single> |
SpellClass
The spell class from spellbook.
Declaration
public SpellClass SpellClass { get; }
Property Value
Type | Description |
---|---|
SpellClass |
SpellSlot
The spellslot.
Declaration
public SpellSlot SpellSlot { get; }
Property Value
Type | Description |
---|---|
SpellSlot |
TargetSelect
Target selection. Standard value = null.
Declaration
public Func<Orbwalker.OrbWalkingModeType, GameObjectBase> TargetSelect { get; set; }
Property Value
Type | Description |
---|---|
System.Func<Orbwalker.OrbWalkingModeType, GameObjectBase> |
Methods
ChargeSpellAtPos(CastSlot, Vector2, Single)
Release spell at position or start charging spell.
Declaration
public virtual bool ChargeSpellAtPos(CastSlot castSlot, Vector2 pos, float castTime)
Parameters
Type | Name | Description |
---|---|---|
CastSlot | castSlot | The cast slot. |
SharpDX.Vector2 | pos | The w2s cast position. |
System.Single | castTime | The cast time in seconds. |
Returns
Type | Description |
---|---|
System.Boolean | True if release spell at position or start charging spell. |
ExecuteCastSpell(Orbwalker.OrbWalkingModeType)
Execute spell.
Declaration
public virtual bool ExecuteCastSpell(Orbwalker.OrbWalkingModeType mode = Orbwalker.OrbWalkingModeType.Combo)
Parameters
Type | Name | Description |
---|---|---|
Orbwalker.OrbWalkingModeType | mode | Input mode. |
Returns
Type | Description |
---|---|
System.Boolean | True if spell is casted/rendered/started to charge/released charge. |
GetPrediction(GameObjectBase)
Get prediction.
Declaration
public virtual Prediction.MenuSelected.PredictionOutput GetPrediction(GameObjectBase target)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | The target to predict. |
Returns
Type | Description |
---|---|
Prediction.MenuSelected.PredictionOutput | Prediction result. |
GetTargets(Orbwalker.OrbWalkingModeType)
Get available targets that is possible to hit based on spell data.
Declaration
public virtual IEnumerable<GameObjectBase> GetTargets(Orbwalker.OrbWalkingModeType mode)
Parameters
Type | Name | Description |
---|---|---|
Orbwalker.OrbWalkingModeType | mode | Input mode. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<GameObjectBase> | Available targets. |
GetTargets(Orbwalker.OrbWalkingModeType, Func<GameObjectBase, Boolean>)
Get available targets that is possible to hit based on spell data.
Declaration
public virtual IEnumerable<GameObjectBase> GetTargets(Orbwalker.OrbWalkingModeType mode, Func<GameObjectBase, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Orbwalker.OrbWalkingModeType | mode | Input mode. |
System.Func<GameObjectBase, System.Boolean> | predicate | Predicate to check for each target. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<GameObjectBase> | Available targets. |
IsCharging()
Returns true if ChargeTimer is running.
Declaration
public virtual bool IsCharging()
Returns
Type | Description |
---|---|
System.Boolean |
IsPossibleToHit(GameObjectBase)
Is possible to hit.
Declaration
public virtual bool IsPossibleToHit(GameObjectBase target)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | Target to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if possible to hit, false if not. |
IsPossibleToHit(GameObjectBase, Prediction.MenuSelected.PredictionOutput)
Is possible to hit.
Declaration
public virtual bool IsPossibleToHit(GameObjectBase target, Prediction.MenuSelected.PredictionOutput predictionOutput)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | Target to check. |
Prediction.MenuSelected.PredictionOutput | predictionOutput | Prediction output to validate. |
Returns
Type | Description |
---|---|
System.Boolean | True if possible to hit, false if not. |
IsTargetable(GameObjectBase)
Determines if a target is targetable.
Declaration
public virtual bool IsTargetable(GameObjectBase target)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | target | Target to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if target is targetable. |
Events
OnSpellCast
Raised when a spell is casted by Oasys.
Declaration
public static event Action<SDKSpell, GameObjectBase> OnSpellCast
Event Type
Type | Description |
---|---|
System.Action<SDKSpell, GameObjectBase> |