Beispiel #1
0
            public void OrderUpdate(MapAreaPosition position, LodGroup currentGroup, int newLodLevel)
            {
                ThreadPool.QueueUserWorkItem(new WaitCallback((obj) =>
                {
                    LodGroupUpdateOrderData data = (LodGroupUpdateOrderData)obj;
                    LodGroup newGroup            = data.CurrentGroup.UpdateLod(data.NewLodLevel);
                    _createdGroups.Add(newGroup);
                }), new LodGroupUpdateOrderData(position, currentGroup, newLodLevel));

                //_createdGroups.Add( currentGroup.UpdateLod(newLodLevel));
            }
Beispiel #2
0
 public LodGroupUpdateOrderData(MapAreaPosition position, LodGroup currentGroup, int newLodLevel)
 {
     this._position     = position;
     this._currentGroup = currentGroup;
     this._newLodLevel  = newLodLevel;
 }
Beispiel #3
0
 public LodGroupGenerationResultData(LodGroup lodGroup, MapAreaPosition position)
 {
     this._lodGroup = lodGroup;
     this._position = position;
 }
Beispiel #4
0
 public LodGroupQueue(LodGroup currentGroup)
 {
     this._currentGroup = currentGroup;
 }