Пример #1
0
        public override void LoadSession(int index, bool forceNew)
        {
            base.LoadSession(index, forceNew);

            if (forceNew)
            {
                ReturnToLobbyHelper.OnSessionCreated();
                LobbyHelper.OnSessionCreated();
            }
        }
        public override void DeserializeSession(int index, byte[] data)
        {
            base.DeserializeSession(index, data);

            if (data == null && global::Celeste.SaveData.Instance?.CurrentSession_Safe != null)
            {
                // the session is new, but this isn't a newly created save file.
                ReturnToLobbyHelper.OnSessionCreated();
                LobbyHelper.OnSessionCreated();
            }
        }