• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# DoorFacing类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: IronGateShort

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


示例17: DarkWoodDoor

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


示例18: GetIdOffset

        public static int GetIdOffset( DoorFacing facing )
        {
            switch ( facing )
            {
                case DoorFacing.WestCCW: return 0;
                case DoorFacing.EastCW: return 2;
                case DoorFacing.SouthCCW: return 4;
                case DoorFacing.NorthCW: return 6;
            }

            return 0;
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:12,代码来源:Doors.cs


示例19: DarkWoodGate

 public DarkWoodGate( DoorFacing facing )
     : base(0x866 + ( 2 * (int) facing ), 0x867 + ( 2 * (int) facing ), 0xEB, 0xF2, BaseDoor.GetOffset( facing ))
 {
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:Doors.cs


示例20: LightWoodGate

 public LightWoodGate( DoorFacing facing )
     : base(0x839 + ( 2 * (int) facing ), 0x83A + ( 2 * (int) facing ), 0xEB, 0xF2, BaseDoor.GetOffset( facing ))
 {
 }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:4,代码来源:Doors.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# DotNetNuke类代码示例发布时间:2022-05-24
下一篇:
C# Door类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap