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

C# Items.BaseAddon类代码示例

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

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



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

示例1: Deserialize

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );
            int version = reader.ReadInt();

            SelectedAddon = ( BaseAddon )reader.ReadItem();
        }
开发者ID:zerodowned,项目名称:My-Stuff,代码行数:7,代码来源:AddOnEditor_Att.cs


示例2: AddComplexComponent

 private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource, string name)
 {
     AddonComponent ac;
     ac = new AddonComponent(item);
     if (name != null)
         ac.Name = name;
     if (hue != 0)
         ac.Hue = hue;
     if (lightsource != -1)
         ac.Light = (LightType) lightsource;
     addon.AddComponent(ac, xoffset, yoffset, zoffset);
 }
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:12,代码来源:BigScreenTVEastAddon.cs


示例3: ConfirmAddonPlacementGump

		public ConfirmAddonPlacementGump( Mobile from, BaseAddon addon ) : base( 50, 50 )
		{
			from.CloseGump( typeof(ConfirmAddonPlacementGump) );
			
			m_Addon = addon;

			AddPage( 0 );

			AddBackground( 10, 10, 190, 140, 0x242C );

			AddHtml( 30, 30, 150, 75, String.Format( "<div align=CENTER>{0}</div>", "Are you sure you want to place this addon here?" ), false, false );

			AddButton( 40, 105, 0x81A, 0x81B, 0x1, GumpButtonType.Reply, 0 ); // Okay
			AddButton( 110, 105, 0x819, 0x818, 0x2, GumpButtonType.Reply, 0 ); // Cancel
		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:15,代码来源:ConfirmAddonPlacementGump.cs


示例4: AddComplexComponent

 private static void AddComplexComponent(BaseAddon addon, int item, int xoffset, int yoffset, int zoffset, int hue, int lightsource, string name, int amount)
 {
     AddonComponent ac;
     ac = new AddonComponent(item);
     if (name != null && name.Length > 0)
         ac.Name = name;
     if (hue != 0)
         ac.Hue = hue;
     if (amount > 1)
     {
         ac.Stackable = true;
         ac.Amount = amount;
     }
     if (lightsource != -1)
         ac.Light = (LightType) lightsource;
     addon.AddComponent(ac, xoffset, yoffset, zoffset);
 }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:17,代码来源:FirepitsmallAddon.cs


示例5: Convert2Static

 public void Convert2Static(BaseAddon design)
 {
     if (design.Components.Count > 0)
     {
         for (int i = 0; i < design.Components.Count; ++i)
         {
             AddonComponent component = (AddonComponent)((design.Components)[i]);
             Static equivalent = new Static(component.HuedItemID);  //( component.ItemID );
             equivalent.Location = component.Location;  //component.Location;
             equivalent.Map = component.Map; //component.Map;
             equivalent.Hue = component.Hue; //component.Map;							
         }
     }
     design.Delete();
 }
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:15,代码来源:Addon2Static.cs


示例6: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 1:
                case 0:
                {
                    m_Addon = reader.ReadItem() as BaseAddon;
                    m_Offset = reader.ReadPoint3D();

                    if ( m_Addon != null )
                        m_Addon.OnComponentLoaded( this );

                    ApplyLightTo( this );

                    break;
                }
            }

            if ( version < 1 && Weight == 0 )
                Weight = -1;
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:26,代码来源:AddonComponent.cs


示例7: Deserialize

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

			int version = reader.ReadInt();

			switch (version)
			{
				case 0:
				{
					m_Addon = reader.ReadItem() as BaseAddon;
					break;
				}
			}
		}
开发者ID:zerodowned,项目名称:angelisland,代码行数:15,代码来源:Doors.cs


示例8: Deserialize

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

             	int version = reader.ReadInt();

             	m_Elevator = (BaseAddon)reader.ReadItem();
             	m_InUse = reader.ReadBool();
             	m_Height = reader.ReadInt();
             	m_Ticks = reader.ReadInt();
             	m_Peaked = reader.ReadBool();
             	m_OutOfUseID = reader.ReadInt();
             	m_InUseID = reader.ReadInt();
             	m_NorthWestEdge = reader.ReadPoint3D();
             	m_SizeNorthSouth = reader.ReadInt();
             	m_SizeEastWest = reader.ReadInt();

            if( reader.ReadBool() )
                BeginMove( reader.ReadDeltaTime() - DateTime.Now );
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:20,代码来源:ElevatorSwitch.cs


示例9: Deserialize

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

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				{
					m_RegionBounds = reader.ReadRect2D();
					m_Traps = reader.ReadStrongItemList<BaseTrap>();

					goto case 0;
				}
				case 0:
				{
					if ( version < 1 )
					{
						m_Traps = new List<BaseTrap>();
						m_RegionBounds = new Rectangle2D( X - 40, Y - 40, 80, 80 );
					}

					m_Creatures = reader.ReadStrongMobileList();

					m_TypeName = reader.ReadString();
					m_Door = reader.ReadItem<BaseDoor>(); ;
					m_Addon = reader.ReadItem<BaseAddon>(); ;
					m_Sequence = reader.ReadItem<GauntletSpawner>();

					State = (GauntletSpawnerState)reader.ReadInt();

					break;
				}
			}
		}
开发者ID:Godkong,项目名称:Origins,代码行数:36,代码来源:GauntletSpawner.cs


示例10: OnChop

        public void OnChop(BaseAddon addon, Mobile from)
        {
            if (addon == null || from == null || !Contains(addon) || !Contains(from))
                return;

            Effects.PlaySound(addon.GetWorldLocation(), addon.Map, 0x3B3);
            from.SendLocalizedMessage(500461); // You destroy the item.

            int hue = 0;

            if (addon.RetainDeedHue)
            {
                for (int i = 0; hue == 0 && i < addon.Components.Count; ++i)
                {
                    AddonComponent c = addon.Components[i];

                    if (c.Hue != 0)
                        hue = c.Hue;
                }
            }

            addon.Delete();
            RemoveAddon(addon);
            BaseAddonDeed deed = addon.Deed;

            if (deed != null)
            {
                #region Mondains Legacy
                deed.Resource = addon.Resource;
                #endregion

                if (addon.RetainDeedHue)
                    deed.Hue = hue;

                from.AddToBackpack(deed);
            }

        }
开发者ID:Ravenwolfe,项目名称:ServUO,代码行数:38,代码来源:BaseGalleon.cs


示例11: AddSpinningWheelS

 public void AddSpinningWheelS(int xoff, int yoff, int zoff)
 {
     m_SpinningWheel2 = new SpinningwheelSouthAddon();
     m_SpinningWheel2.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs


示例12: AddTrainingE

 public void AddTrainingE(int xoff, int yoff, int zoff)
 {
     m_Training1 = new TrainingDummyEastAddon();
     m_Training1.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs


示例13: AddSmallForge

 public void AddSmallForge(int xoff, int yoff, int zoff)
 {
     m_SmallForge = new SmallForgeAddon();
     m_SmallForge.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs


示例14: AddSpinningWheelE

 public void AddSpinningWheelE(int xoff, int yoff, int zoff)
 {
     m_SpinningWheel1 = new SpinningwheelEastAddon();
     m_SpinningWheel1.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs


示例15: AddMill

 public void AddMill(int xoff, int yoff, int zoff)
 {
     m_Mill = new FlourMillSouthAddon();
     m_Mill.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs


示例16: AddAnvil

 public void AddAnvil(int xoff, int yoff, int zoff)
 {
     m_Anvil = new AnvilEastAddon();
     m_Anvil.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs


示例17: AddLargeForge

 public void AddLargeForge(int xoff, int yoff, int zoff)
 {
     m_LargeForge = new LargeForgeSouthHouseAddon();
     m_LargeForge.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs


示例18: AddLoom

 public void AddLoom(int xoff, int yoff, int zoff)
 {
     m_Loom = new LoomSouthAddon();
     m_Loom.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs


示例19: AddFireplace

 public void AddFireplace(int xoff, int yoff, int zoff)
 {
     m_Fireplace = new GrayBrickFireplaceSouthAddon();
     m_Fireplace.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs


示例20: AddTrainingS

 public void AddTrainingS(int xoff, int yoff, int zoff)
 {
     m_Training2 = new TrainingDummySouthAddon();
     m_Training2.MoveToWorld(new Point3D(xoff + this.X, yoff + this.Y, zoff + this.Z), this.Map);
 }
开发者ID:Godkong,项目名称:RunUO,代码行数:5,代码来源:BaseHouse.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Items.BaseArmor类代码示例发布时间:2022-05-26
下一篇:
C# Items.BankCheck类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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