Beispiel #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();
        }
Beispiel #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();
        }