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
Properties
AllowCancelBasicAttack
Allow to cancel basicattack. Standard value = false.
Declaration
public Func<bool> AllowCancelBasicAttack { get; set; }
Property Value
Type | Description |
---|---|
System. |
AllowCastInDirection
Allow to cast the spell in a direction. Standard value = false.
Declaration
public Func<bool> AllowCastInDirection { get; set; }
Property Value
Type | Description |
---|---|
System. |
AllowCastOnMap
Allow to cast the spell on minimap. Standard value = false.
Declaration
public Func<bool> AllowCastOnMap { get; set; }
Property Value
Type | Description |
---|---|
System. |
AllowCollision
Should allow collision or not. Standard value = true.
Declaration
public Func<GameObjectBase, IEnumerable<GameObjectBase>, bool> AllowCollision { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
CastSlot
The castslot.
Declaration
public CastSlot CastSlot { get; }
Property Value
Type | Description |
---|---|
Cast |
ChargeTimer
Chargetimer to control chargespell time.
Declaration
public virtual Stopwatch ChargeTimer { get; }
Property Value
Type | Description |
---|---|
System. |
Damage
Damage calculation. Standard value = 0.
Declaration
public Func<GameObjectBase, SpellClass, float> Damage { get; set; }
Property Value
Type | Description |
---|---|
System. |
Delay
The spell delay/animation time/cast time. Standard value = 0.25.
Declaration
public Func<float> Delay { get; set; }
Property Value
Type | Description |
---|---|
System. |
From
The position to cast from. Standard value = UnitManager.MyChampion.AIManager.ServerPosition.
Declaration
public Func<Vector3> From { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsChannel
Is a channel spell. Standard value = false.
Declaration
public Func<bool> IsChannel { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsCharge
Is a charge spell. Standard value = false.
Declaration
public Func<bool> IsCharge { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
IsSpellReady
Declaration
public Func<SpellClass, float, int, bool> IsSpellReady { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsTargetted
Is a targetted spell. Standard value = false.
Declaration
public Func<bool> IsTargetted { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
MinimumHitChance
The minimum hit chance. Standard value = HitChance.High.
Declaration
public Func<Prediction.MenuSelected.HitChance> MinimumHitChance { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
PredictionMode
The prediction type/mode. Standard value = PredictionType.Line.
Declaration
public Func<Prediction.MenuSelected.PredictionType> PredictionMode { get; set; }
Property Value
Type | Description |
---|---|
System. |
Radius
The spell radius/width/angle. Standard value = 0.
Declaration
public Func<float> Radius { get; set; }
Property Value
Type | Description |
---|---|
System. |
Range
The spell range. Standard value = 0.
Declaration
public Func<float> Range { get; set; }
Property Value
Type | Description |
---|---|
System. |
RenderSpellUsage
Render method. Fx: Karthus ult can kill x, y, z.
Declaration
public Action RenderSpellUsage { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
Speed
The spell speed. Standard value = 0.
Declaration
public Func<float> Speed { get; set; }
Property Value
Type | Description |
---|---|
System. |
SpellClass
The spell class from spellbook.
Declaration
public SpellClass SpellClass { get; }
Property Value
Type | Description |
---|---|
Spell |
SpellSlot
The spellslot.
Declaration
public SpellSlot SpellSlot { get; }
Property Value
Type | Description |
---|---|
Spell |
TargetSelect
Target selection. Standard value = null.
Declaration
public Func<Orbwalker.OrbWalkingModeType, GameObjectBase> TargetSelect { get; set; }
Property Value
Type | Description |
---|---|
System. |
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 |
---|---|---|
Cast |
castSlot | The cast slot. |
Sharp |
pos | The w2s cast position. |
System. |
castTime | The cast time in seconds. |
Returns
Type | Description |
---|---|
System. |
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. |
mode | Input mode. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Game |
target | The target to predict. |
Returns
Type | Description |
---|---|
Prediction. |
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. |
mode | Input mode. |
Returns
Type | Description |
---|---|
System. |
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. |
mode | Input mode. |
System. |
predicate | Predicate to check for each target. |
Returns
Type | Description |
---|---|
System. |
Available targets. |
IsCharging()
Returns true if ChargeTimer is running.
Declaration
public virtual bool IsCharging()
Returns
Type | Description |
---|---|
System. |
IsPossibleToHit(GameObjectBase)
Is possible to hit.
Declaration
public virtual bool IsPossibleToHit(GameObjectBase target)
Parameters
Type | Name | Description |
---|---|---|
Game |
target | Target to check. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Game |
target | Target to check. |
Prediction. |
predictionOutput | Prediction output to validate. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Game |
target | Target to check. |
Returns
Type | Description |
---|---|
System. |
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. |