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)); }
public LodGroupUpdateOrderData(MapAreaPosition position, LodGroup currentGroup, int newLodLevel) { this._position = position; this._currentGroup = currentGroup; this._newLodLevel = newLodLevel; }
public LodGroupGenerationResultData(LodGroup lodGroup, MapAreaPosition position) { this._lodGroup = lodGroup; this._position = position; }
public LodGroupQueue(LodGroup currentGroup) { this._currentGroup = currentGroup; }