示例#1
0
        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);
            }
        }
示例#2
0
 public WarpCommand(Game1 receiver, RawWarp warp)
 {
     this.receiver = receiver;
     this.warp     = warp;
 }