Example #1
0
        void Construct()
        {
            trace.Header = String.Format("Player({0})", this.UserID);

            // XXX creating IP engine takes some time. Do it in the background. Race condition with IP msg handlers
            System.Threading.Tasks.Task.Factory.StartNew(delegate
            {
                m_ipRunner = new IPRunner(m_world, m_engine, this);
            });

            if (m_seeAll)
                m_changeHandler = new AdminChangeHandler(this);
            else
                m_changeHandler = new PlayerChangeHandler(this);
        }
Example #2
0
        void Construct()
        {
            trace.Header = String.Format("Player({0})", this.PlayerID);

            if (m_seeAll)
                m_changeHandler = new AdminChangeHandler(this);
            else
                m_changeHandler = new PlayerChangeHandler(this);
        }