Exemple #1
0
 protected internal SceneGraph(Scene parent, RegionInfo regInfo)
 {
     _transactionMgr = new SceneTransactionManager(this);
     m_parentScene = parent;
     m_regInfo = regInfo;
     QuadTree = new BasicQuadTreeNode(null, "/0/", 0, 0, (short)Constants.RegionSize, (short)Constants.RegionSize);
     QuadTree.Subdivide();
     QuadTree.Subdivide();
 }
Exemple #2
0
 /// <summary>
 /// Construct a new scene transaction object
 /// </summary>
 /// <param name="sceneParts">IDs of the parts that are involved in the transaction</param>
 /// <param name="mgr"></param>
 public SceneTransaction(IEnumerable <uint> sceneParts, SceneTransactionManager mgr)
 {
     _sceneParts.AddRange(sceneParts);
     _mgr = mgr;
 }