FFACETools.FFACE.GetAbilityRecast C# (CSharp) Method

GetAbilityRecast() private method

private GetAbilityRecast ( int instanceID, byte index ) : int
instanceID int
index byte
return int
        private static extern int GetAbilityRecast(int instanceID, byte index);

Usage Example

Example #1
0
 /// <summary>
 /// Gets the time left in seconds before being able to reuse an ability
 /// </summary>
 /// <param name="index">Index of the ability</param>
 public int GetAbilityRecast(byte index)
 {
     if (index >= 0 && index <= MAX_ABILITY_INDEX)
     {
         return((int)Math.Ceiling((decimal)(FFACE.GetAbilityRecast(_InstanceID, index) / 60)));
     }
     else
     {
         throw new ArgumentOutOfRangeException("Must be within 0 to MAX_ABILITY_INDEX");
     }
 } // @ public int GetAbilityRecast(byte index)
All Usage Examples Of FFACETools.FFACE::GetAbilityRecast
FFACE