public static AFKEvent Parse(string name, long PlayerGUID) { var parsedEvent = new AFKEvent() { Guid = PlayerGUID, Name = name }; return(parsedEvent); }
private void onAwayFromKeyboardStateChanged(GameServerEvent gameServerEvent, object data) { AFKEvent aFKEvent = (AFKEvent)data; Service.Get <EventDispatcher>().DispatchEvent(new PlayerStateServiceEvents.AwayFromKeyboardStateChanged(aFKEvent.SessionId, aFKEvent.AFKValue, aFKEvent.EquippedObject)); }