當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。