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


C# Factions.Town类代码示例

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


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

示例1: FactionTownStoneGump

		public FactionTownStoneGump( PlayerMobile from, Faction faction, Town town ) : base( 50, 50 )
		{
			m_From = from;
			m_Faction = faction;
			m_Town = town;

			AddPage( 0 );

			AddBackground( 0, 0, 320, 250, 5054 );
			AddBackground( 10, 10, 300, 230, 3000 );

			AddHtmlText( 25, 30, 250, 25, town.Definition.FactionTownStoneHeader, false, false );

			AddHtmlLocalized( 55, 60, 150, 25, 1011557, false, false ); // Hire Sheriff
			AddButton( 20, 60, 4005, 4007, 1, GumpButtonType.Reply, 0 );

			AddHtmlLocalized( 55, 90, 150, 25, 1011559, false, false ); // Hire Finance Minister
			AddButton( 20, 90, 4005, 4007, 2, GumpButtonType.Reply, 0 );

			AddHtmlLocalized( 55, 120, 150, 25, 1011558, false, false ); // Fire Sheriff
			AddButton( 20, 120, 4005, 4007, 3, GumpButtonType.Reply, 0 );

			AddHtmlLocalized( 55, 150, 150, 25, 1011560, false, false ); // Fire Finance Minister
			AddButton( 20, 150, 4005, 4007, 4, GumpButtonType.Reply, 0 );

			AddHtmlLocalized( 55, 210, 150, 25, 1011441, false, false ); // EXIT
			AddButton( 20, 210, 4005, 4007, 0, GumpButtonType.Reply, 0 );
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:28,代码来源:TownStoneGump.cs

示例2: FactionOreVendor

 public FactionOreVendor( Town town, Faction faction )
     : base(town, faction, "the Ore Man")
 {
     // NOTE: Skills verified
     SetSkill( SkillName.Carpentry, 85.0, 100.0 );
     SetSkill( SkillName.Lumberjacking, 60.0, 83.0 );
 }
开发者ID:BackupTheBerlios,项目名称:sunuo-svn,代码行数:7,代码来源:FactionOreVendor.cs

示例3: FactionHorseVendor

 public FactionHorseVendor( Town town, Faction faction )
     : base(town, faction, "the Horse Breeder")
 {
     SetSkill( SkillName.AnimalLore, 64.0, 100.0 );
     SetSkill( SkillName.AnimalTaming, 90.0, 100.0 );
     SetSkill( SkillName.Veterinary, 65.0, 88.0 );
 }
开发者ID:BackupTheBerlios,项目名称:sunuo-svn,代码行数:7,代码来源:FactionHorseVendor.cs

示例4: BaseMonolith

		public BaseMonolith( Town town, Faction faction ) : base( 0x1183 )
		{
			Movable = false;
			Town = town;
			Faction = faction;
			m_Monoliths.Add( this );
		}
开发者ID:greeduomacro,项目名称:last-wish,代码行数:7,代码来源:BaseMonolith.cs

示例5: Sigil

        public Sigil( Town town )
            : base(0x1869)
        {
            Movable = false;
            Town = town;

            m_Sigils.Add( this );
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:8,代码来源:Sigil.cs

示例6: FactionReagentVendor

		public FactionReagentVendor( Town town, Faction faction ) : base( town, faction, "the Reagent Man" )
		{
			SetSkill( SkillName.EvalInt, 65.0, 88.0 );
			SetSkill( SkillName.Inscribe, 60.0, 83.0 );
			SetSkill( SkillName.Magery, 64.0, 100.0 );
			SetSkill( SkillName.Meditation, 60.0, 83.0 );
			SetSkill( SkillName.MagicResist, 65.0, 88.0 );
			SetSkill( SkillName.Wrestling, 36.0, 68.0 );
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:9,代码来源:FactionReagentVendor.cs

示例7: TownStone

        public TownStone( Town town )
            : base(0xEDE)
        {
            Movable = false;
            Town = town;

            // Blocked
            this.Delete();
        }
开发者ID:greeduomacro,项目名称:DimensionsNewAge,代码行数:9,代码来源:TownStone.cs

示例8: Construct

 public BaseFactionVendor Construct(Town town, Faction faction)
 {
     try
     {
         return Activator.CreateInstance(this.m_Definition.Type, new object[] { town, faction }) as BaseFactionVendor;
     }
     catch
     {
         return null;
     }
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:11,代码来源:VendorList.cs

示例9: BaseFactionVendor

		public BaseFactionVendor( Town town, Faction faction, string title ) : base( title )
		{
			Frozen = true;
			CantWalk = true;
			Female = false;
			BodyValue = 400;
			Name = NameList.RandomName( "male" );

			RangeHome = 0;

			m_Town = town;
			m_Faction = faction;
			Register();
		}
开发者ID:Godkong,项目名称:RunUO,代码行数:14,代码来源:BaseFactionVendor.cs

示例10: BaseFactionVendor

        public BaseFactionVendor(Town town, Faction faction, string title)
            : base(title)
        {
            this.Frozen = true;
            this.CantWalk = true;
            this.Female = false;
            this.BodyValue = 400;
            this.Name = NameList.RandomName("male");

            this.RangeHome = 0;

            this.m_Town = town;
            this.m_Faction = faction;
            this.Register();
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:15,代码来源:BaseFactionVendor.cs

示例11: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                {
                    Town = Town.ReadReference( reader );
                    break;
                }
            }
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:15,代码来源:TownStone.cs

示例12: Generate

		public static void Generate( Town town )
		{
			Map facet = Faction.Facet;

			TownDefinition def = town.Definition;

			if ( !CheckExistance( def.Monolith, facet, typeof( TownMonolith ) ) )
			{
				TownMonolith mono = new TownMonolith( town );
				mono.MoveToWorld( def.Monolith, facet );
				mono.Sigil = new Sigil( town );
			}

			if ( !CheckExistance( def.TownStone, facet, typeof( TownStone ) ) )
				new TownStone( town ).MoveToWorld( def.TownStone, facet );
		}
开发者ID:Godkong,项目名称:RunUO,代码行数:16,代码来源:Generator.cs

示例13: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                {
                    m_Town = Town.ReadReference( reader );
                    m_Faction = Faction.ReadReference( reader );
                    Register();
                    break;
                }
            }

            Frozen = true;
        }
开发者ID:cynricthehun,项目名称:UOLegends,代码行数:19,代码来源:BaseFactionVendor.cs

示例14: TownState

        public TownState( GenericReader reader )
        {
            int version = reader.ReadEncodedInt();

            switch ( version )
            {
                case 3:
                {
                    m_LastIncome = reader.ReadDateTime();

                    goto case 2;
                }
                case 2:
                {
                    m_Tax = reader.ReadEncodedInt();
                    m_LastTaxChange = reader.ReadDateTime();

                    goto case 1;
                }
                case 1:
                {
                    m_Silver = reader.ReadEncodedInt();

                    goto case 0;
                }
                case 0:
                {
                    m_Town = Town.ReadReference( reader );
                    m_Owner = Faction.ReadReference( reader );

                    m_Sheriff = reader.ReadMobile();
                    m_Finance = reader.ReadMobile();

                    m_Town.State = this;

                    break;
                }
            }
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:39,代码来源:TownState.cs

示例15: Generate

        public static void Generate(Town town)
        {
            Map facet = Faction.Facet;

            TownDefinition def = town.Definition;

            if (!CheckExistance(def.Monolith, facet, typeof(TownMonolith)))
            {
                TownMonolith mono = new TownMonolith(town);
                mono.MoveToWorld(def.Monolith, facet);
                mono.Sigil = new Sigil(town);
				WeakEntityCollection.Add("factions", mono);
				WeakEntityCollection.Add("factions", mono.Sigil);
			}

			if (!CheckExistance(def.TownStone, facet, typeof(TownStone)))
			{
				TownStone stone = new TownStone(town);
				WeakEntityCollection.Add("factions", stone);
				stone.MoveToWorld(def.TownStone, facet);
			}
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:22,代码来源:Generator.cs


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