當前位置: 首頁>>代碼示例>>C#>>正文


C# GenericWriter.WriteGuildList方法代碼示例

本文整理匯總了C#中Server.GenericWriter.WriteGuildList方法的典型用法代碼示例。如果您正苦於以下問題:C# GenericWriter.WriteGuildList方法的具體用法?C# GenericWriter.WriteGuildList怎麽用?C# GenericWriter.WriteGuildList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Server.GenericWriter的用法示例。


在下文中一共展示了GenericWriter.WriteGuildList方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Serialize

		public override void Serialize( GenericWriter writer )
		{
			if ( this.LastFealty+TimeSpan.FromDays( 1.0 ) < DateTime.Now )
				this.CalculateGuildmaster();

			writer.Write( (int) 4 );//version

			writer.WriteGuildList( m_AllyDeclarations, true );
			writer.WriteGuildList( m_AllyInvitations, true );

			writer.Write( m_TypeLastChange );

			writer.Write( (int)m_Type );

			writer.Write( m_LastFealty );

			writer.Write( m_Leader );
			writer.Write( m_Name );
			writer.Write( m_Abbreviation );

			writer.WriteGuildList( m_Allies, true );
			writer.WriteGuildList( m_Enemies, true );
			writer.WriteGuildList( m_WarDeclarations, true );
			writer.WriteGuildList( m_WarInvitations, true );

			writer.WriteMobileList( m_Members, true );
			writer.WriteMobileList( m_Candidates, true );
			writer.WriteMobileList( m_Accepted, true );

			writer.Write( m_Guildstone );
			writer.Write( m_Teleporter );

			writer.Write( m_Charter );
			writer.Write( m_Website );
		}
開發者ID:kamronbatman,項目名稱:DefianceUO-Pre1.10,代碼行數:35,代碼來源:Guild.cs

示例2: Serialize

        public void Serialize( GenericWriter writer )
        {
            writer.Write( (int)0 );	//Version

            writer.Write( m_Name );
            writer.Write( m_Leader );

            writer.WriteGuildList( m_Members, true );
            writer.WriteGuildList( m_PendingMembers, true );

            if( !m_Alliances.ContainsKey( m_Name.ToLower() ) )
                m_Alliances.Add( m_Name.ToLower(), this );
        }
開發者ID:Leodinas,項目名稱:uolite,代碼行數:13,代碼來源:Guild.cs

示例3: Serialize

		public override void Serialize(GenericWriter writer)
		{
			writer.Write((int)8);//version

            //version 8 addition
            writer.Write((int)m_Flags);

			//version 7 addition
			writer.Write(m_bGuildWarRing);

			//version 6 addition
			writer.Write(m_TownshipStone);

			//version 5 additions
			writer.Write((int)m_IOBAlignment);
			//end version 5 additions

			writer.WriteGuildList(m_AllyDeclarations, true);
			writer.WriteGuildList(m_AllyInvitations, true);

			writer.Write(m_TypeLastChange);

			writer.Write((int)m_Type);

			writer.Write(m_LastFealty);

			writer.Write(m_Leader);
			writer.Write(m_Name);
			writer.Write(m_Abbreviation);

			writer.WriteGuildList(m_Allies, true);
			writer.WriteGuildList(m_Enemies, true);
			writer.WriteGuildList(m_WarDeclarations, true);
			writer.WriteGuildList(m_WarInvitations, true);

			writer.WriteMobileList(m_Members, true);
			writer.WriteMobileList(m_Candidates, true);
			writer.WriteMobileList(m_Accepted, true);

			writer.Write(m_Guildstone);
			writer.Write(m_Teleporter);

			writer.Write(m_Charter);
			writer.Write(m_Website);
		}
開發者ID:zerodowned,項目名稱:angelisland,代碼行數:45,代碼來源:Guild.cs


注:本文中的Server.GenericWriter.WriteGuildList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。