コード例 #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
ファイル: LocalSessionManager.cs プロジェクト: rc183/igf
        /// <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();
        }