상속: Session
예제 #1
0
        /// <summary>
        /// Creates a Single Player Session
        /// </summary>
        /// <remarks>No network resources will be used</remarks>
        public override void CreateSinglePlayerSession()
        {
            if (LocalPlayers.Count == 0)
                throw new CoreException("No players identified");

            if (CurrentSession == null)
                CurrentSession = new LocalSession();

            OnSessionCreated();
        }
예제 #2
0
        /// <summary>
        /// Creates a Single Player Session
        /// </summary>
        /// <remarks>No network resources will be used</remarks>
        public override void CreateSinglePlayerSession()
        {
            if (LocalPlayers.Count == 0)
            {
                throw new CoreException("No players identified");
            }

            if (CurrentSession == null)
            {
                CurrentSession = new LocalSession();
            }

            OnSessionCreated();
        }