public TiledMapMover(TiledTileLayer startCollisionLayer) { //this.collisionLayer = collisionLayer; this.collisionLayers.Add(startCollisionLayer); tiledMap = startCollisionLayer.tiledMap; Assert.isNotNull(startCollisionLayer, nameof(startCollisionLayer) + " is required"); }
public TiledTileLayer createTileLayer(string name, int width, int height, TiledTile[] tiles) { var layer = new TiledTileLayer(this, name, width, height, tiles); layers.Add(layer); return(layer); }
public TiledMapComponent( TiledMap tiledmap, string collisionLayerName = null ) { this.tiledMap = tiledmap; if( collisionLayerName != null ) collisionLayer = tiledmap.getLayer<TiledTileLayer>( collisionLayerName ); }
public TiledMapComponent( TiledMap tiledMap, string collisionLayerName = null, bool shouldCreateColliders = true ) { this.tiledMap = tiledMap; _shouldCreateColliders = shouldCreateColliders; if( collisionLayerName != null ) collisionLayer = tiledMap.getLayer<TiledTileLayer>( collisionLayerName ); }
public TiledLayer createTileLayer(string name, int width, int height, TiledTile[] tiles) { if (orientation == TiledMapOrientation.Orthogonal) { var layer = new TiledTileLayer(this, name, width, height, tiles); layers.Add(layer); return(layer); } if (orientation == TiledMapOrientation.Isometric) { var layer = new TiledIsometricTiledLayer(this, name, width, height, tiles); layers.Add(layer); return(layer); } throw new NotImplementedException(); }
public TiledMapMover(TiledTileLayer collisionLayer) { this.collisionLayer = collisionLayer; tiledMap = collisionLayer.tiledMap; Assert.isNotNull(collisionLayer, nameof(collisionLayer) + " is required"); }
/// <summary> /// /// </summary> /// <param name="newCollisionLayer"></param> public void addCollisionLayer(TiledTileLayer newCollisionLayer) { collisionLayers.Add(newCollisionLayer); }
public TiledMapMover(TiledTileLayer collisionLayer) { Insist.IsNotNull(collisionLayer, nameof(collisionLayer) + " is required"); this.CollisionLayer = collisionLayer; TiledMap = collisionLayer.TiledMap; }
public TiledMapMover( TiledTileLayer collisionLayer ) { this.collisionLayer = collisionLayer; tiledMap = collisionLayer.tiledMap; Assert.isNotNull( collisionLayer, nameof( collisionLayer ) + " is required" ); }