protected virtual void OnEntityAction(EntityActionEventArgs e) { EventHandler<EntityActionEventArgs> handler = EntityAction; if (handler != null) handler(this, e); }
protected void RaiseOnEntityAction(InterceptedEventArgs e) { if (EntityAction != null) { var args = new EntityActionEventArgs(e.Continuation, e.Step, e.Packet); OnEntityAction(args); e.Cancel = args.Cancel; e.WasContinued = args.WasContinued; } }