ace/Source/ACE.Server/Entity/Actions/ActionEventDelegate.cs
Mag-nus 1062ccb48b
WRAP_AND_MEASURE_ACT_WITH_STOPWATCH (#1992)
* WRAP_AND_MEASURE_ACT_WITH_STOPWATCH

* Forgot to make action public

* switch to warn
2019-06-13 17:40:26 -05:00

21 lines
389 B
C#

using System;
namespace ACE.Server.Entity.Actions
{
public class ActionEventDelegate : ActionEventBase
{
public readonly Action Action;
public ActionEventDelegate(Action action)
{
Action = action;
}
public override Tuple<IActor, IAction> Act()
{
Action();
return base.Act();
}
}
}