private bool onSessionPause(SessionEvents.SessionPausedEvent evt) { Service.Get<EventDispatcher>().RemoveListener<SessionEvents.SessionPausedEvent>(onSessionPause); Service.Get<ICPSwrveService>().Action("membership_session", "paused"); Service.Get<EventDispatcher>().AddListener<SessionEvents.SessionResumedEvent>(onSessionResumed); Service.Get<EventDispatcher>().AddListener<SessionErrorEvents.NoSessionOnResumeError>(onSessionResumeFailed); return false; }
private bool onSessionPaused(SessionEvents.SessionPausedEvent evt) { if (!base.IsInHandledState) { return(false); } rootStateMachine.SendEvent(gameStateController.PausedEvent); return(false); }
private bool onSessionPaused(SessionEvents.SessionPausedEvent evt) { if (!base.IsInHandledState) { return(false); } if (isLocalPlayerInZone) { Service.Get <LoadingController>().RemoveLoadingSystem(this); rootStateMachine.SendEvent(gameStateController.PausedEvent); } return(false); }
private bool onSessionPaused(SessionEvents.SessionPausedEvent evt) { if (isInvitationLocalPlayer && dataEntityCollection.TryGetComponent <HeldObjectsData>(dataEntityCollection.LocalPlayerHandle, out var component)) { DHeldObject heldObject = component.HeldObject; if (heldObject != null) { dataEntityCollection.AddComponent(dataEntityCollection.LocalPlayerHandle, delegate(PropToBeRestoredData restoreData) { restoreData.PropId = heldObject.ObjectId; }); removeItem(); } } return(false); }
private bool onSessionPaused(SessionEvents.SessionPausedEvent evt) { if (IsLocalUserUsingProp()) { PropCancel component = LocalPlayerPropUser.Prop.GetComponent <PropCancel>(); if (component != null && LocalPlayerPropUser.Prop != null && isPropRestorable(LocalPlayerPropUser.Prop.PropDef)) { dataEntityCollection.AddComponent(dataEntityCollection.LocalPlayerHandle, delegate(PropToBeRestoredData restoreData) { restoreData.PropId = LocalPlayerPropUser.Prop.PropId; }); component.UnequipProp(immediate: true); } } return(false); }
private bool onSessionPause(SessionEvents.SessionPausedEvent evt) { ClearZoneScope(); return(false); }
private bool onSessionPaused(SessionEvents.SessionPausedEvent evt) { destroyAllPrompts(); return(false); }