Esempio n. 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;
        }
Esempio n. 2
0
            public SafeReadHandle(ThreadSafeCollection <T> threadSafeCollection)
            {
                m_collection = threadSafeCollection;

                threadSafeCollection.m_RWLock.EnterUpgradeableReadLock();
            }