DelayedAction.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Server.MirEnvir;
  2. namespace Server.MirObjects
  3. {
  4. public enum DelayedType
  5. {
  6. Magic,
  7. /// <summary>
  8. /// Param0 MapObject (Target) | Param1 Damage | Param2 Defence | Param3 damageWeapon | Param4 UserMagic | Param5 FinalHit
  9. /// </summary>
  10. Damage,
  11. RangeDamage,
  12. Spawn,
  13. Die,
  14. Recall,
  15. MapMovement,
  16. Mine,
  17. NPC,
  18. Poison,
  19. DamageIndicator,
  20. Quest,
  21. // Sanjian
  22. SpellEffect,
  23. }
  24. public class DelayedAction
  25. {
  26. protected static Envir Envir
  27. {
  28. get { return Envir.Main; }
  29. }
  30. public DelayedType Type;
  31. public long Time;
  32. public long StartTime;
  33. public object[] Params;
  34. public bool FlaggedToRemove;
  35. public DelayedAction(DelayedType type, long time, params object[] p)
  36. {
  37. StartTime = Envir.Time;
  38. Type = type;
  39. Time = time;
  40. Params = p;
  41. }
  42. }
  43. }