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

                threadSafeCollection.m_RWLock.EnterUpgradeableReadLock();
            }