Server.Multis.BaseHouse.AddDoor C# (CSharp) Method

AddDoor() public method

public AddDoor ( BaseDoor door, int xoff, int yoff, int zoff ) : void
door Server.Items.BaseDoor
xoff int
yoff int
zoff int
return void
		public void AddDoor( BaseDoor door, int xoff, int yoff, int zoff )
		{
			door.MoveToWorld( new Point3D( xoff+this.X, yoff+this.Y, zoff+this.Z ), this.Map );
			m_Doors.Add( door );
		}

Usage Example

Ejemplo n.º 1
0
        public static void AddDoorEx(this BaseHouse house, int doorType, int x, int y, int z, uint keyValue)
        {
            GenericHouseDoor ghd = null;

            var ds = (Doorswing)doorType;

            switch (ds)
            {
            case Doorswing.MetalSouthWest:
                ghd = new GenericHouseDoor(DoorFacing.WestCW, 1653, 0xEC, 0xF3);
                break;

            case Doorswing.MetalSouthEast:
                ghd = new GenericHouseDoor(DoorFacing.EastCCW, 1653, 0xEC, 0xF3);
                break;

            case Doorswing.MetalEastSouth:
                ghd = new GenericHouseDoor(DoorFacing.SouthCW, 1653, 0xEC, 0xF3);
                break;

            case Doorswing.MetalEastNorth:
                ghd = new GenericHouseDoor(DoorFacing.NorthCCW, 1653, 0xEC, 0xF3);
                break;

            //--
            case Doorswing.WeaveSouthWest:
                ghd = new GenericHouseDoor(DoorFacing.WestCW, 1685, 0x69E, 0xF2);
                break;

            case Doorswing.WeaveSouthEast:
                ghd = new GenericHouseDoor(DoorFacing.EastCCW, 1685, 0x69E, 0xF2);
                break;

            case Doorswing.WeaveEastSouth:
                ghd = new GenericHouseDoor(DoorFacing.SouthCW, 1685, 0x69E, 0xF2);
                break;

            case Doorswing.WeaveEastNorth:
                ghd = new GenericHouseDoor(DoorFacing.NorthCCW, 1685, 0x69E, 0xF2);
                break;

            //--
            case Doorswing.DarkSouthWest:
                ghd = new GenericHouseDoor(DoorFacing.WestCW, 1701, 0xEA, 0xF1);
                break;

            case Doorswing.DarkSouthEast:
                ghd = new GenericHouseDoor(DoorFacing.EastCCW, 1701, 0xEA, 0xF1);
                break;

            case Doorswing.DarkEastSouth:
                ghd = new GenericHouseDoor(DoorFacing.SouthCW, 1701, 0xEA, 0xF1);
                break;

            case Doorswing.DarkEastNorth:
                ghd = new GenericHouseDoor(DoorFacing.NorthCCW, 1701, 0xEA, 0xF1);
                break;

            //--
            case Doorswing.LightSouthWest:
                ghd = new GenericHouseDoor(DoorFacing.WestCW, 1749, 0xEA, 0xF1);
                break;

            case Doorswing.LightSouthEast:
                ghd = new GenericHouseDoor(DoorFacing.EastCCW, 1749, 0xEA, 0xF1);
                break;

            case Doorswing.LightEastSouth:
                ghd = new GenericHouseDoor(DoorFacing.SouthCW, 1749, 0xEA, 0xF1);
                break;

            case Doorswing.LightEastNorth:
                ghd = new GenericHouseDoor(DoorFacing.NorthCCW, 1749, 0xEA, 0xF1);
                break;

            //--
            case Doorswing.WMSouthWest:
                ghd = new GenericHouseDoor(DoorFacing.WestCW, 1765, 0xEA, 0xF1);
                break;

            case Doorswing.WMSouthEast:
                ghd = new GenericHouseDoor(DoorFacing.EastCCW, 1765, 0xEA, 0xF1);
                break;

            case Doorswing.WMEastSouth:
                ghd = new GenericHouseDoor(DoorFacing.SouthCW, 1765, 0xEA, 0xF1);
                break;

            case Doorswing.WMEastNorth:
                ghd = new GenericHouseDoor(DoorFacing.NorthCCW, 1765, 0xEA, 0xF1);
                break;
            }

            ghd.KeyValue = keyValue;

            house.AddDoor(ghd, x, y, z);
        }
All Usage Examples Of Server.Multis.BaseHouse::AddDoor