Exemplo n.º 1
0
 public override void SetDefaults()
 {
     TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 2, 0);
     QuickBlock.QuickSetFurniture(this, 2, 1, dust, SoundID.Dig, false, color);
     adjTiles = new int[] { TileID.WorkBenches };
     AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTable);
 }
Exemplo n.º 2
0
 public override void SetDefaults()
 {
     Main.tileLighted[Type]           = true;
     TileObjectData.newTile.AnchorTop = new AnchorData(AnchorType.SolidTile, 1, 0);
     QuickBlock.QuickSetFurniture(this, 1, 2, dust, SoundID.Dig, false, color);
     AddToArray(ref TileID.Sets.RoomNeeds.CountsAsTorch);
 }
Exemplo n.º 3
0
        public override void SetDefaults()
        {
            TileObjectData.newTile.AnchorTop          = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
            TileObjectData.newTile.AnchorBottom       = new AnchorData(AnchorType.SolidTile, TileObjectData.newTile.Width, 0);
            TileObjectData.newTile.UsesCustomCanPlace = true;
            TileObjectData.newTile.StyleHorizontal    = true;

            TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile);
            TileObjectData.newAlternate.Origin = new Point16(0, 1);
            TileObjectData.addAlternate(0);
            TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile);
            TileObjectData.newAlternate.Origin = new Point16(0, 2);
            TileObjectData.addAlternate(0);

            QuickBlock.QuickSetFurniture(this, 1, 3, dust, SoundID.Dig, false, color);

            Main.tileBlockLight[Type]        = true;
            Main.tileSolid[Type]             = true;
            Main.tileNoAttach[Type]          = true;
            Main.tileLavaDeath[Type]         = true;
            TileID.Sets.NotReallySolid[Type] = true;
            TileID.Sets.DrawsWalls[Type]     = true;
            TileID.Sets.HasOutlines[Type]    = true;

            AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor);

            disableSmartCursor = true;
            adjTiles           = new int[] { TileID.ClosedDoor };
            openDoorID         = mod.TileType(name.Replace("Closed", "Open"));
        }
Exemplo n.º 4
0
        public override void SetDefaults()
        {
            TileObjectData.newTile.StyleHorizontal = true;
            TileObjectData.newTile.Direction       = TileObjectDirection.PlaceLeft;
            TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile);
            TileObjectData.newAlternate.Direction = TileObjectDirection.PlaceRight;
            TileObjectData.addAlternate(1);

            TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 4, 0);
            QuickBlock.QuickSetFurniture(this, 4, 2, dust, SoundID.Dig, false, color);
        }
Exemplo n.º 5
0
        public override void SetDefaults()
        {
            TileObjectData.newTile.AnchorTop    = new AnchorData(AnchorType.SolidTile, 1, 0);
            TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, 1, 0);

            TileObjectData.newTile.LavaDeath = true;

            TileObjectData.newTile.StyleHorizontal = true;
            TileObjectData.newTile.StyleMultiplier = 2;
            TileObjectData.newTile.StyleWrapLimit  = 2;

            TileObjectData.newTile.Direction = TileObjectDirection.PlaceRight;
            TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile);
            TileObjectData.newAlternate.Origin = new Point16(0, 1);
            TileObjectData.addAlternate(0);
            TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile);
            TileObjectData.newAlternate.Origin = new Point16(0, 2);
            TileObjectData.addAlternate(0);
            TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile);
            TileObjectData.newAlternate.Origin       = new Point16(1, 0);
            TileObjectData.newAlternate.AnchorTop    = new AnchorData(AnchorType.SolidTile, 1, 1);
            TileObjectData.newAlternate.AnchorBottom = new AnchorData(AnchorType.SolidTile, 1, 1);
            TileObjectData.newAlternate.Direction    = TileObjectDirection.PlaceLeft;
            TileObjectData.addAlternate(1);
            TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile);
            TileObjectData.newAlternate.Origin       = new Point16(1, 1);
            TileObjectData.newAlternate.AnchorTop    = new AnchorData(AnchorType.SolidTile, 1, 1);
            TileObjectData.newAlternate.AnchorBottom = new AnchorData(AnchorType.SolidTile, 1, 1);
            TileObjectData.newAlternate.Direction    = TileObjectDirection.PlaceLeft;
            TileObjectData.addAlternate(1);
            TileObjectData.newAlternate.CopyFrom(TileObjectData.newTile);
            TileObjectData.newAlternate.Origin       = new Point16(1, 2);
            TileObjectData.newAlternate.AnchorTop    = new AnchorData(AnchorType.SolidTile, 1, 1);
            TileObjectData.newAlternate.AnchorBottom = new AnchorData(AnchorType.SolidTile, 1, 1);
            TileObjectData.newAlternate.Direction    = TileObjectDirection.PlaceLeft;
            TileObjectData.addAlternate(1);

            QuickBlock.QuickSetFurniture(this, 2, 3, dust, SoundID.Dig, false, color);

            AddToArray(ref TileID.Sets.RoomNeeds.CountsAsDoor);
            TileID.Sets.HousingWalls[Type] = true;
            TileID.Sets.HasOutlines[Type]  = true;

            disableSmartCursor = true;
            adjTiles           = new int[] { TileID.OpenDoor };
            closeDoorID        = mod.TileType(name.Replace("Open", "Closed"));
        }
Exemplo n.º 6
0
 public override void SetDefaults()
 {
     TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidTile, 2, 0);
     QuickBlock.QuickSetFurniture(this, 2, 4, DustType <Dusts.Air>(), SoundID.Tink, false, new Color(120, 100, 100));
 }
Exemplo n.º 7
0
 public override void SetDefaults()
 {
     TileObjectData.newTile.AnchorBottom = new AnchorData(AnchorType.SolidWithTop | AnchorType.SolidTile, 2, 0);
     QuickBlock.QuickSetFurniture(this, 2, 2, dust, SoundID.Dig, false, color);
 }