예제 #1
0
        public GameWorld(Size logicalSize)
        {
            Logger.Log("Constructing GameWorld...");

            m_safeGameObjects  = new ThreadSafeCollection <GameObject>();
            m_staticObjects    = new List <StaticObject>();
            m_planeControllers = new List <PlaneControllerBase>();

            Size = logicalSize;
        }
예제 #2
0
            public SafeReadHandle(ThreadSafeCollection <T> threadSafeCollection)
            {
                m_collection = threadSafeCollection;

                threadSafeCollection.m_RWLock.EnterUpgradeableReadLock();
            }