コード例 #1
0
 private void DestroyProxy()
 {
     for (int i = 0; i < _actorCount; ++i)
     {
         int   j     = _rand.Next() % _actorCount;
         Actor actor = _actors[j];
         if (actor.proxyId != DynamicTree <Actor> .NullNode)
         {
             _tree.DestroyProxy(actor.proxyId);
             actor.proxyId = DynamicTree <Actor> .NullNode;
             return;
         }
     }
 }
コード例 #2
0
ファイル: DynamicTreeTest.cs プロジェクト: CrazyLiu00/GMap
 private void DestroyProxy()
 {
     for (int i = 0; i < e_actorCount; ++i)
     {
         int   j     = Rand.rand.Next() % e_actorCount;
         Actor actor = _actors[j];
         if (actor.proxyId != -1)
         {
             _tree.DestroyProxy(actor.proxyId);
             actor.proxyId = -1;
             return;
         }
     }
 }