本文整理汇总了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);
}