本文整理匯總了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 );
}
示例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 );
}
示例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);
}