當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。