Interface IAbility
- Namespace
- TrinketTinker.Effects.Abilities
- Assembly
- TrinketTinker.dll
public interface IAbility
Properties
AbilityClass
string AbilityClass { get; }
Property Value
AbilityId
string AbilityId { get; }
Property Value
ProcSyncIndex
The resolved ProcSyncIndex for Sync, only set to >0 if the ability is enabled
int ProcSyncIndex { get; }
Property Value
Valid
Mark the new ability as valid, if this is false after constructor, the ability is discarded
bool Valid { get; }
Property Value
Methods
Activate(Farmer)
Activate the ability by registering events.
bool Activate(Farmer farmer)
Parameters
farmer
Farmer
Returns
Deactivate(Farmer)
Deactivate the ability by unregistering events.
bool Deactivate(Farmer farmer)
Parameters
farmer
Farmer
Returns
Update(Farmer, GameTime, GameLocation)
Perform update every tick.
void Update(Farmer farmer, GameTime time, GameLocation location)
Parameters
farmer
Farmertime
GameTimelocation
GameLocation
Events
EventAbilityProc
Proc event for use with sync procs
event EventHandler<ProcEventArgs>? EventAbilityProc