public static void Process(GameEntity entity, Enums.AttachmentEvent attachmentEvent, bool isDetached) { Entity = entity; IsDetached = isDetached; switch (attachmentEvent) { case Enums.AttachmentEvent.Vendor: VendorEvent(); break; } }
private void OnEntityDetached(GameEntity entity, Enums.AttachmentEvent attachmentEvent) { AttachmentEventHandler.Process(entity, attachmentEvent, true); }