本文整理汇总了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 );
}
示例2: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( (int)0 ); // Version
writer.Write( m_IsRewardItem );
}
示例3: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( (int) 0 ); // version
writer.WriteEncodedInt( (int) m_Level );
}
示例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] );
}
示例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 );
}
示例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 );
}
示例7: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( ( int ) 0 );
writer.WriteEncodedInt( (int) m_OrigHue );
}
示例8: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(0); // version
writer.WriteItem<BallotBoxAccount>(m_CBB);
}
示例9: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (byte) 0 ); // version
writer.WriteEncodedInt( (int) m_LabelNumber );
}
示例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 );
}
示例11: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 ); // version
writer.WriteEncodedInt( m_Uses );
}
示例12: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( (int) 0 ); // version
writer.Write( m_DeclineMessage );
}
示例13: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
writer.Write( m_Picked );
}
示例14: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 1 ); // version
writer.Write( m_ElvesOnly );
}
示例15: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
writer.WriteEncodedInt(m_ScoreInterval);
}