コード例 #1
0
        /// <summary>
        /// Do command in the given world
        /// </summary>
        /// <param name="targetWorld">The world to apply command</param>
        /// <returns>Command processing result</returns>
        internal override Core.CommandResult DoCommand(World targetWorld)
        {
            StreamingSession stream = new StreamingSession(Contents);

            targetWorld.MyChannel.StartStreamingSession(stream);

            return(Core.CommandResult.SimpleSuccess);
        }
コード例 #2
0
ファイル: MyChannel.cs プロジェクト: debugger-net/GGJ19-MHS
        public void StartStreamingSession(Broadcasting.StreamingSession session)
        {
            m_currentStreaming = session;

            if (m_currentStreaming.streamingContents != null)
            {
                m_currentStreaming.streamingContents.OnStreamingStarted();
            }
        }