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


C# Guilds.Guild类代码示例

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


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

示例1: GuildAdvancedSearchGump

 public GuildAdvancedSearchGump(PlayerMobile pm, Guild g, GuildDisplayType display, SearchSelectionCallback callback)
     : base(pm, g)
 {
     this.m_Callback = callback;
     this.m_Display = display;
     this.PopulateGump();
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:AdvancedSearch.cs

示例2: WarDeclarationGump

        public WarDeclarationGump( PlayerMobile pm, Guild g, Guild otherGuild )
            : base(pm, g)
        {
            m_Other = otherGuild;
            WarDeclaration war = g.FindPendingWar( otherGuild );

            AddPage( 0 );

            AddBackground( 0, 0, 500, 340, 0x24AE );
            AddBackground( 65, 50, 370, 30, 0x2486 );
            AddHtmlLocalized( 75, 55, 370, 26, 1062979, 0x3C00, false, false ); // <div align=center><i>Declaration of War</i></div>
            AddImage( 410, 45, 0x232C );
            AddHtmlLocalized( 65, 95, 200, 20, 1063009, 0x14AF, false, false ); // <i>Duration of War</i>
            AddHtmlLocalized( 65, 120, 400, 20, 1063010, 0x0, false, false ); // Enter the number of hours the war will last.
            AddBackground( 65, 150, 40, 30, 0x2486 );
            AddTextEntry( 70, 154, 50, 30, 0x481, 10, (war != null) ? war.WarLength.Hours.ToString() : "0" );
            AddHtmlLocalized( 65, 195, 200, 20, 1063011, 0x14AF, false, false ); // <i>Victory Condition</i>
            AddHtmlLocalized( 65, 220, 400, 20, 1063012, 0x0, false, false ); // Enter the winning number of kills.
            AddBackground( 65, 250, 40, 30, 0x2486 );
            AddTextEntry( 70, 254, 50, 30, 0x481, 11, (war != null) ? war.MaxKills.ToString() : "0" );
            AddBackground( 190, 270, 130, 26, 0x2486 );
            AddButton( 195, 275, 0x845, 0x846, 0, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 220, 273, 90, 26, 1006045, 0x0, false, false ); // Cancel
            AddBackground( 330, 270, 130, 26, 0x2486 );
            AddButton( 335, 275, 0x845, 0x846, 1, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 360, 273, 90, 26, 1062989, 0x5000, false, false ); // Declare War!
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:27,代码来源:War+Declaration+gump.cs

示例3: NewPlayerGuildJoinGump

        public NewPlayerGuildJoinGump(Guild guild, Mobile m)
            : base(0, 0)
        {
            _Guild = guild;
            Closable = true;
            Disposable = true;
            Dragable = true;
            Resizable = false;

            AddPage(0);
            AddBackground(27, 83, 424, 357, 9200);
            AddImage(127, 174, 1418);
            AddImageTiled(30, 85, 21, 349, 10464);
            AddImageTiled(426, 87, 21, 349, 10464);
            AddImage(417, 27, 10441);
            AddImage(205, 44, 9000);
            AddLabel(63, 158, 54, ("Welcome to UO:Forever, " + m.Name));
            AddLabel(55, 185, 2047, "If you would like to join the new player's guild, click the");
            AddLabel(55, 205, 2047, "okay button below. The new player's guild will help you get");
            AddLabel(55, 225, 2047, "started on your journey. They will provide you with valuable");
            AddLabel(55, 250, 2047, "supplies and knowledge that will aid you on your adventures");
            AddLabel(55, 275, 2047, "throughout the world of Sosaria!");
            AddButton(55, 340, 247, 248, 1, GumpButtonType.Reply, 0);
            AddButton(147, 340, 242, 243, 0, GumpButtonType.Reply, 0);
            AddImageTiled(63, 176, 253, 1, 5410);
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:26,代码来源:NewPlayerGuildJoinUI.cs

示例4: BaseGuildGump

		public BaseGuildGump( PlayerMobile pm, Guild g, int x, int y ) : base( x, y )
		{
			m_Guild = g;
			m_Player = pm;
			
			pm.CloseGump( typeof( BaseGuildGump ) );
		}
开发者ID:Godkong,项目名称:Origins,代码行数:7,代码来源:BaseGuildGump.cs

示例5: OnResponse

			public override void OnResponse( Mobile from, string text )
			{
				if ( m_Deed.Deleted )
					return;

				if ( !m_Deed.IsChildOf( from.Backpack ) )
				{
					from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.

				}
				else
				{
							m_Deed.Delete();

							Guild guild = new Guild( from, "Chaos", "none" );

							from.Guild = guild;
							from.GuildTitle = "Guildmaster" ;

							ChaosStone stone = new ChaosStone( guild );

							stone.MoveToWorld( from.Location, from.Map );

							guild.Guildstone = stone;
							guild.Type = GuildType.Chaos;
							guild.Abbreviation = "RP";



				}


			}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:33,代码来源:ChaosDeed.cs

示例6: GuildCharterGump

        public GuildCharterGump( Mobile from, Guild guild )
            : base(20, 30)
        {
            m_Mobile = from;
            m_Guild = guild;

            Dragable = false;

            AddPage( 0 );
            AddBackground( 0, 0, 550, 400, 5054 );
            AddBackground( 10, 10, 530, 380, 3000 );

            AddButton( 20, 360, 4005, 4007, 1, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 55, 360, 300, 35, 1011120, false, false ); // Return to the main menu.

            string charter;

            if ( (charter = guild.Charter) == null || (charter = charter.Trim()).Length <= 0 )
                AddHtmlLocalized( 20, 20, 400, 35, 1013032, false, false ); // No charter has been defined.
            else
                AddHtml( 20, 20, 510, 75, charter, true, true );

            AddButton( 20, 200, 4005, 4007, 2, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 55, 200, 300, 20, 1011122, false, false ); // Visit the guild website :

            string website;

            if ( (website = guild.Website) == null || (website = website.Trim()).Length <= 0 )
                website = DefaultWebsite;

            AddHtml( 55, 220, 300, 20, website, false, false );
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:32,代码来源:GuildCharterGump.cs

示例7: GuildMemberInfoGump

	    public GuildMemberInfoGump( PlayerMobile pm, Guild g, PlayerMobile member, bool toKick, bool toPromoteToLeader ) : base( pm, g, 10, 40 )
		{
			m_ToLeader = toPromoteToLeader;
			m_toKick = toKick;
			m_Member = member;
			PopulateGump();
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:7,代码来源:GuildMemberInfoGump.cs

示例8: Guildstone

        public Guildstone( Guild g )
            : base(0xED4)
        {
            m_Guild = g;

            Movable = false;
        }
开发者ID:cynricthehun,项目名称:UOLegends,代码行数:7,代码来源:Guildstone.cs

示例9: GuildTrack

                public GuildTrack( Mobile from, Guild guild, bool locations )
                    : base(0x02, ( ( guild.Members.Count - 1 ) * ( locations ? 10 : 4 ) ) + 5)
                {
                    m_Stream.Write( (byte) ( locations ? 1 : 0 ) );

                    for ( int i = 0; i < guild.Members.Count; ++i )
                    {
                        Mobile mob = guild.Members[i];

                        if ( mob == null || mob == from || mob.NetState == null )
                            continue;

                        if ( locations && Utility.InUpdateRange( from, mob ) && from.CanSee( mob ) )
                            continue;

                        m_Stream.Write( (int) mob.Serial );

                        if ( locations )
                        {
                            m_Stream.Write( (short) mob.X );
                            m_Stream.Write( (short) mob.Y );
                            m_Stream.Write( (byte) ( mob.Map == null ? 0 : mob.Map.MapID ) );

                            if ( Settings.GuildHitsPercent && mob.Alive )
                                m_Stream.Write( (byte) ( mob.Hits / Math.Max( mob.HitsMax, 1.0 ) * 100 ) );
                            else
                                m_Stream.Write( (byte) 0 );
                        }
                    }

                    m_Stream.Write( (int) 0 );
                }
开发者ID:svvota,项目名称:runuo,代码行数:32,代码来源:MapUO.cs

示例10: NewPlayerGuildHelpGump

        public NewPlayerGuildHelpGump(Guild guild, Mobile m)
            : base(0, 0)
        {
            _Guild = guild;
            Closable = true;
            Disposable = true;
            Dragable = true;
            Resizable = false;

            AddPage(0);
            AddBackground(27, 83, 424, 357, 9200);
            AddImage(127, 174, 1418);
            AddImageTiled(30, 85, 21, 349, 10464);
            AddImageTiled(426, 87, 21, 349, 10464);
            AddImage(417, 27, 10441);
            AddImage(205, 44, 9000);
            AddLabel(63, 158, 54, ("Congratulations on joining the new player's guild, " + m.Name));
            AddLabel(55, 185, 2047, "Here are a few things you need to know about your guild:");
            AddLabel(55, 205, 2047, "-The NEW guild is run by " + guild.Leader.Name);
            AddLabel(55, 225, 2047, "-To type in guild chat, type \\ then your message");
            AddLabel(55, 250, 2047, "-To type in alliance chat, type shift+\\ then your message");
            AddLabel(55, 275, 2047, "-To resign from your guild, type I resign from my guild");
            AddButton(55, 340, 247, 248, 1, GumpButtonType.Reply, 0);
            AddImageTiled(63, 176, 380, 1, 5410);
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:25,代码来源:NewPlayerGuildHelpUI.cs

示例11: GuildChangeTypeGump

		public GuildChangeTypeGump( Mobile from, Guild guild ) : base( 20, 30 )
		{
			m_Mobile = from;
			m_Guild = guild;

			Dragable = false;

			AddPage( 0 );
			AddBackground( 0, 0, 550, 400, 5054 );
			AddBackground( 10, 10, 530, 380, 3000 );

			AddHtmlLocalized( 20, 15, 510, 30, 1013062, false, false ); // <center>Change Guild Type Menu</center>

			AddHtmlLocalized( 50, 50, 450, 30, 1013066, false, false ); // Please select the type of guild you would like to change to

			AddButton( 20, 100, 4005, 4007, 1, GumpButtonType.Reply, 0 );
			AddHtmlLocalized( 85, 100, 300, 30, 1013063, false, false ); // Standard guild

			AddButton( 20, 150, 4005, 4007, 2, GumpButtonType.Reply, 0 );
			AddItem( 50, 143, 7109 );
			AddHtmlLocalized( 85, 150, 300, 300, 1013064, false, false ); // Order guild

			AddButton( 20, 200, 4005, 4007, 3, GumpButtonType.Reply, 0 );
			AddItem( 45, 200, 7107 );
			AddHtmlLocalized( 85, 200, 300, 300, 1013065, false, false ); // Chaos guild

			AddButton( 300, 360, 4005, 4007, 4, GumpButtonType.Reply, 0 );
			AddHtmlLocalized( 335, 360, 150, 30, 1011012, false, false ); // CANCEL
		}
开发者ID:Leorgrium,项目名称:runuo,代码行数:29,代码来源:GuildChangeTypeGump.cs

示例12: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 1:
                {
                    m_Guild = reader.ReadGuild() as Server.Guilds.Guild;

                    goto case 0;
                }
                case 0:
                {
                    break;
                }
            }

            if ( m_Guild == null )
                this.Delete();
            else
                Timer.DelayCall( TimeSpan.Zero, new TimerCallback( ResetType ) );
        }
开发者ID:FreeReign,项目名称:Rebirth-Repack,代码行数:25,代码来源:Guildstone.cs

示例13: GuildmasterMenu

        public GuildmasterMenu( Mobile from, Guild guild )
            : base("GUILDMASTER FUNCTIONS", null)
        {
            m_Mobile = from;
            m_Guild = guild;

            List<String> list = new List<String>();

            list.Add( "Set the guild name." );
            list.Add( "Set the guild's abbreviation." );
            list.Add( "Set the guild's charter." );
            list.Add( "Dismiss a member." );
            list.Add( "Go to the WAR menu." );

            if ( m_Guild.Candidates.Count > 0 )
            {
                list.Add( "Administer the list of candidates" );
            }
            else
            {
                list.Add( "There are currently no candidates for membership." );
            }

            list.Add( "Set the guildmaster's title." );
            list.Add( "Grant a title to another member." );
            list.Add( "Move this guildstone." );
            list.Add( "Access Guild Protection menu." );
            list.Add( "Return to the main menu." );

            Answers = list.ToArray();
        }
开发者ID:Ravenwolfe,项目名称:Origins,代码行数:31,代码来源:GuildmasterMenu.cs

示例14: GuildChangeTypeGump

        public GuildChangeTypeGump( Mobile from, Guild guild )
            : base(20, 30)
        {
            m_Mobile = from;
            m_Guild = guild;

            Dragable = true;

            AddPage( 0 );
            AddBackground(0, 0, 550, 400, 9270);
            //AddBackground( 10, 10, 530, 380, 3000 );

            AddHtml(20, 15, 510, 30, "<center>Mudar Alinhamento da Guilda</center>", false, false); // <center>Change Guild Type Menu</center>

            AddHtml(50, 50, 450, 30, "Selecione o Alinhamento da Guilda", false, false); // Please select the type of guild you would like to change to

            AddButton( 20, 100, 4005, 4007, 1, GumpButtonType.Reply, 0 );
            AddHtml(85, 100, 300, 30, "Neutro", false, false); // Standard guild

            AddButton( 20, 150, 4005, 4007, 2, GumpButtonType.Reply, 0 );
            AddItem( 50, 143, 7109 );
            AddHtml(85, 150, 300, 300, "Order Guild", false, false); // Order guild

            AddButton( 20, 200, 4005, 4007, 3, GumpButtonType.Reply, 0 );
            AddItem( 45, 200, 7107 );
            AddHtml(85, 200, 300, 300, "Chaos Guild", false, false); // Chaos guild

            AddButton( 300, 360, 4005, 4007, 4, GumpButtonType.Reply, 0 );
            AddHtml(335, 360, 150, 30, "Cancelar", false, false); // CANCEL
        }
开发者ID:greeduomacro,项目名称:DimensionsNewAge,代码行数:30,代码来源:GuildChangeTypeGump.cs

示例15: GuildInvitationRequest

        public GuildInvitationRequest( PlayerMobile pm, Guild g, PlayerMobile inviter )
            : base(pm, g)
        {
            m_Inviter = inviter;

            PopulateGump();
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:7,代码来源:GuildInvitationRequest.cs


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