ConnectUser() 개인적인 메소드

private ConnectUser ( User user ) : void
user User
리턴 void
예제 #1
0
        public void SetPlayer(Player player)
        {
            trace.TraceInformation("{0} takes control of {1}", this, player);
            this.Player = player;
            player.ConnectUser(this);

            if (m_ipStartTask != null)
            {
                m_ipStartTask.Wait();
            }

            if (m_ipRunner != null)
            {
                m_ipRunner.SetPlayer(player);
            }
        }
예제 #2
0
파일: User.cs 프로젝트: tomba/dwarrowdelf
        public void SetPlayer(Player player)
        {
            trace.TraceInformation("{0} takes control of {1}", this, player);
            this.Player = player;
            player.ConnectUser(this);

            if (m_ipStartTask != null)
                m_ipStartTask.Wait();

            if (m_ipRunner != null)
                m_ipRunner.SetPlayer(player);
        }