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


C# GenericWriter.WriteEncodedInt方法代码示例

本文整理汇总了C#中Server.GenericWriter.WriteEncodedInt方法的典型用法代码示例。如果您正苦于以下问题:C# GenericWriter.WriteEncodedInt方法的具体用法?C# GenericWriter.WriteEncodedInt怎么用?C# GenericWriter.WriteEncodedInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server.GenericWriter的用法示例。


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

示例1: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( (int) 0 );
			writer.Write( m_Points );
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:7,代码来源:TenderEvoMeat.cs

示例2: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.WriteEncodedInt( (int)0 ); // Version

			writer.Write( m_IsRewardItem );
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:DecoAnkhAddon.cs

示例3: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( (int) 0 ); // version

			writer.WriteEncodedInt( (int) m_Level );
		}
开发者ID:romeov007,项目名称:imagine-uo,代码行数:8,代码来源:TapestryOfSosaria.cs

示例4: Serialize

        public static void Serialize( GenericWriter writer, LoyaltyInfo info )
        {
            writer.WriteEncodedInt( (int) 0 ); // version

            int length = info.m_Values.Length;
            writer.WriteEncodedInt( length );

            for ( int i = 0; i < length; i++ )
                writer.WriteEncodedInt( info.m_Values[i] );
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:10,代码来源:LoyaltyInfo.cs

示例5: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( (int) 0 ); // version

			writer.WriteEncodedInt( (int)m_Type );
			writer.Write( m_Width );
			writer.Write( m_Height );
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:10,代码来源:CarpetAddon.cs

示例6: Serialize

		public virtual void Serialize( GenericWriter writer )
		{
			if ( m_Number > 0 )
			{
				writer.WriteEncodedInt( 1 );
				writer.WriteEncodedInt( m_Number );
			}
			else if ( m_String != null )
			{
				writer.WriteEncodedInt( 2 );
				writer.Write( m_String );
			}
			else
				writer.WriteEncodedInt( 0 );
		}
开发者ID:PepeBiondi,项目名称:runsa,代码行数:15,代码来源:TextDefinition.cs

示例7: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( ( int ) 0 );
			
			writer.WriteEncodedInt( (int) m_OrigHue );
		}
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:7,代码来源:GhostCostume.cs

示例8: Serialize

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.WriteEncodedInt(0); // version
            writer.WriteItem<BallotBoxAccount>(m_CBB);
        }
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:7,代码来源:BallotBoxAccount.cs

示例9: Serialize

        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (byte) 0 ); // version
            writer.WriteEncodedInt( (int) m_LabelNumber );
        }
开发者ID:FreeReign,项目名称:Rebirth-Repack,代码行数:7,代码来源:Static.cs

示例10: Serialize

		public virtual void Serialize( GenericWriter writer )
		{
			writer.Write( (int) 0 ); // version
			
			SaveFlag flags = SaveFlag.None;

			SetSaveFlag( ref flags, SaveFlag.Type,		m_Type != null );
			SetSaveFlag( ref flags, SaveFlag.Name,		m_Name != null );
			SetSaveFlag( ref flags, SaveFlag.Amount,	m_Amount != 0 );
			
			writer.WriteEncodedInt( (int) flags );

			if ( GetSaveFlag( flags, SaveFlag.Type ) )
				writer.Write( m_Type.FullName );

			if ( GetSaveFlag( flags, SaveFlag.Name ) )
			{
				if ( m_Name is int )
				{
					writer.WriteEncodedInt( 0x1 );
					writer.WriteEncodedInt( (int) m_Name );
				}
				else if ( m_Name is String )
				{
					writer.WriteEncodedInt( 0x2 );
					writer.Write( (String) m_Name );
				}
				else
					writer.WriteEncodedInt( 0x0 );
			}
				
			if ( GetSaveFlag( flags, SaveFlag.Amount ) )				
				writer.WriteEncodedInt( m_Amount );			
		}	
开发者ID:brodock,项目名称:genova-project,代码行数:34,代码来源:TalismanAttribute.cs

示例11: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

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

			writer.WriteEncodedInt( m_Uses );
		}
开发者ID:Godkong,项目名称:RunUO,代码行数:8,代码来源:HangoverCure.cs

示例12: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( (int) 0 ); // version

			writer.Write( m_DeclineMessage );
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:8,代码来源:ItemInPackTeleporter.cs

示例13: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 0 ); // version

			writer.Write( m_Picked );
		}
开发者ID:greeduomacro,项目名称:vivre-uo,代码行数:8,代码来源:FarmableCrop.cs

示例14: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 1 ); // version

			writer.Write( m_ElvesOnly );
		}
开发者ID:romeov007,项目名称:imagine-uo,代码行数:8,代码来源:RobeOfTheEquinox.cs

示例15: Serialize

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

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

            writer.WriteEncodedInt(m_ScoreInterval);
        }
开发者ID:nathanvy,项目名称:runuo,代码行数:8,代码来源:KingOfTheHill.cs


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