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


C# Items.BaseAddon类代码示例

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


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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: 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


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