当前位置: 首页>>代码示例>>C#>>正文


C# DoorFacing类代码示例

本文整理汇总了C#中DoorFacing的典型用法代码示例。如果您正苦于以下问题:C# DoorFacing类的具体用法?C# DoorFacing怎么用?C# DoorFacing使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DoorFacing类属于命名空间,在下文中一共展示了DoorFacing类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            //base.SkipDeserialize( reader );

            base.Deserialize( reader );

            int version = reader.ReadInt();
            /*
            switch (version)
            {
                case 1:
                    m_Altar = reader.ReadItem() as CCSummoningAltar;
                    goto case 0;
                case 0:
                    // Version 0
                    PointDest = reader.ReadPoint3D();
                    Name = reader.ReadString();
                    Active = reader.ReadBool();
                    m_OneSideArea = reader.ReadRect2D();
                    break;
            }
            */
            switch (version)
            {
                case 0:
                    m_Facing = (DoorFacing)reader.ReadInt();
                    m_Altar = reader.ReadItem() as CCSummoningAltar;
                    break;
            }
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:30,代码来源:CCMagicDoor.cs

示例2: CCMagicDoor

 public CCMagicDoor( DoorFacing facing )
     : base()
 {
     m_Facing = facing;
     ItemID = 0x677;
     Visible = true;
 }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:7,代码来源:CCMagicDoor.cs

示例3: DestroyableBarredMetalDoor

 public DestroyableBarredMetalDoor(DoorFacing facing)
     : base(0x685 + (2 * (int)facing), 0x686 + (2 * (int)facing), 0xEC, 0xF3, BaseDestroyableDoor.GetOffset(facing))
 {
     Name = "Barred Metal Door";
     Weight = 1.0;
     HitsMax = 50;
     Hits = 50;
 }
开发者ID:greeduomacro,项目名称:uozombies-2,代码行数:8,代码来源:DestroyableDoors.cs

示例4: YardIronGate

		public YardIronGate( Mobile from, int price, DoorFacing facing, Point3D loc) : base(facing)
		{
			m_Value = price;
			m_Placer = from;
			Movable = false;
			MoveToWorld( loc, from.Map );
			Name = from.Name + "'s Gate";
		}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:8,代码来源:YardGate.cs

示例5: Deserialize

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                {
                    m_Facing = (DoorFacing)reader.ReadInt();
                    break;
                }
            }
        }
开发者ID:FreeReign,项目名称:Rebirth-Repack,代码行数:15,代码来源:HouseDoors.cs

示例6: YardGate

        public YardGate(int itemID, Mobile placer, int price, BaseHouse house, Point3D location, DoorFacing facing)
            : base(itemID, itemID + 1, GetOpenedSound(itemID), GetClosedSound(itemID), BaseDoor.GetOffset(facing))
        {
            Placer = placer;
            Price = price;

            Movable = false;
            MoveToWorld(location, placer.Map);

            if (house == null)
            {
                FindHouseOfPlacer();
            }
            else
            {
                House = house;
            }

            SetName();
        }
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:20,代码来源:YardGate.cs

示例7: AddDoor

        public static BaseDoor AddDoor(int x, int y, int z, DoorFacing facing)
        {
            int doorZ = z;
            int doorTop = doorZ + 20;

            if (!m_Map.CanFit(x, y, z, 16, false, false))
                return null;

            if (y == 1743 && x >= 1343 && x <= 1344)
                return null;

            if (y == 1679 && x >= 1392 && x <= 1393)
                return null;

            if (x == 1320 && y >= 1618 && y <= 1640)
                return null;

            if (x == 1383 && y >= 1642 && y <= 1643)
                return null;

            BaseDoor door = new DarkWoodDoor(facing);
			WeakEntityCollection.Add("door", door);
            door.MoveToWorld(new Point3D(x, y, z), m_Map);

            ++m_Count;

            return door;
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:28,代码来源:DoorGenerator.cs

示例8: StrongWoodDoor

 public StrongWoodDoor( DoorFacing facing )
     : base(0x6E5 + ( 2 * (int) facing ), 0x6E6 + ( 2 * (int) facing ), 0xEA, 0xF1, BaseDoor.GetOffset( facing ))
 {
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:Doors.cs

示例9: BarredMetalDoor2

 public BarredMetalDoor2( DoorFacing facing )
     : base(0x1FED + ( 2 * (int) facing ), 0x1FEE + ( 2 * (int) facing ), 0xEC, 0xF3, BaseDoor.GetOffset( facing ))
 {
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:Doors.cs

示例10: MediumWoodDoor

 public MediumWoodDoor( DoorFacing facing )
     : base(0x6B5 + ( 2 * (int) facing ), 0x6B6 + ( 2 * (int) facing ), 0xEA, 0xF1, BaseDoor.GetOffset( facing ))
 {
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:Doors.cs

示例11: LightWoodDoor

 public LightWoodDoor( DoorFacing facing )
     : base(0x6D5 + ( 2 * (int) facing ), 0x6D6 + ( 2 * (int) facing ), 0xEA, 0xF1, BaseDoor.GetOffset( facing ))
 {
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:Doors.cs

示例12: LargeGargishQueenDoor

 public LargeGargishQueenDoor( DoorFacing facing )
     : base(0x4D1A + GetIdOffset( facing ), 0x4D1B + GetIdOffset( facing ), -1, -1, BaseDoor.GetOffset( facing ))
 {
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:Doors.cs

示例13: GenericHouseDoor

		public GenericHouseDoor( DoorFacing facing, int baseItemID, int openedSound, int closedSound, bool autoAdjust )
			: base( facing, baseItemID + (autoAdjust ? (2 * (int)facing) : 0), baseItemID + 1 + (autoAdjust ? (2 * (int)facing) : 0), openedSound, closedSound, BaseDoor.GetOffset( facing ) )
		{
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:4,代码来源:HouseDoors.cs

示例14: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				{
					m_Level = (SecureLevel)reader.ReadInt();
					goto case 0;
				}
				case 0:
				{
					if ( version < 1 )
						m_Level = SecureLevel.Anyone;

					m_Facing = (DoorFacing)reader.ReadInt();
					break;
				}
			}
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:23,代码来源:HouseDoors.cs

示例15: IronGate

 public IronGate( DoorFacing facing )
     : base(0x824 + ( 2 * (int) facing ), 0x825 + ( 2 * (int) facing ), 0xEC, 0xF3, BaseDoor.GetOffset( facing ))
 {
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:Doors.cs


注:本文中的DoorFacing类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。