GetObjectCollection() public method

public GetObjectCollection ( GameObject o ) : CNCMaps.Engine.Game.GameCollection
o CNCMaps.Engine.Map.GameObject
return CNCMaps.Engine.Game.GameCollection
コード例 #1
0
 private void SetDrawables()
 {
     foreach (var tile in _tiles)
     {
         tile.Drawable = _theater.GetCollection(CollectionType.Tiles).GetDrawable(tile);
         foreach (var obj in tile.AllObjects)
         {
             obj.Collection = _theater.GetObjectCollection(obj);
             obj.Drawable   = obj.Collection.GetDrawable(obj);
         }
     }
 }