public WarpPipe(TileMap level, Vector2 initPos, IWarpPipeType type, RawWarp warp) : base(level, initPos) { Type = type; TextureType = typeof(WarpPipe); CollisionBox.ColorType = typeof(WarpPipe); Sprite = Type.GetSprite(this); if (warp != null) { warpCmd = new WarpCommand(level.Game, warp); } }
public WarpCommand(Game1 receiver, RawWarp warp) { this.receiver = receiver; this.warp = warp; }