当前位置: 首页>>代码示例>>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;未经允许,请勿转载。