本文整理汇总了C#中GenericWriter.WriteEncodedInt方法的典型用法代码示例。如果您正苦于以下问题:C# GenericWriter.WriteEncodedInt方法的具体用法?C# GenericWriter.WriteEncodedInt怎么用?C# GenericWriter.WriteEncodedInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericWriter
的用法示例。
在下文中一共展示了GenericWriter.WriteEncodedInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public void Serialize( GenericWriter writer )
{
writer.WriteEncodedInt( (int) 0 ); // version
Faction.WriteReference( writer, m_Faction );
writer.WriteEncodedInt( (int) m_Type );
}
示例2: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (byte) 0 ); // version
writer.WriteEncodedInt( (int) m_LabelNumber );
}
示例3: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 1 ); // version
writer.Write( m_East );
}
示例4: Serialize
internal void Serialize(GenericWriter writer)
{
writer.WriteEncodedInt(0); // version
writer.Write((TimeSpan)m_DuelTime);
writer.WriteMobileList<Mobile>(m_AgainstList);
}
示例5: Serialize
public override void Serialize(GenericWriter writer) // Default Serialize method
{
base.Serialize(writer);
writer.Write(0); // version
writer.WriteEncodedInt(m_Guild);
}
示例6: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 );
writer.Write( m_Sound );
}
示例7: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( (int) 0 ); // version
writer.WriteEncodedInt( (int) m_Level );
}
示例8: Serialize
public void Serialize(GenericWriter writer)
{
writer.WriteEncodedInt((int)0);
writer.WriteEncodedInt((int)m_Skill);
writer.WriteEncodedInt((int)m_SkillValue);
writer.WriteEncodedInt((int)m_Price);
}
示例9: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
writer.WriteEncodedInt( (int)TreasuresOfTokuno.RewardEra );
writer.WriteEncodedInt( (int)TreasuresOfTokuno.DropEra );
}
示例10: Serialize
public void Serialize(GenericWriter writer)
{
writer.WriteEncodedInt(0); // version
writer.Write(this.m_ItemType == null ? null : this.m_ItemType.FullName);
writer.WriteEncodedInt((int)this.m_AmountCur);
writer.WriteEncodedInt((int)this.m_Number);
writer.WriteEncodedInt((int)this.m_Graphic);
}
示例11: BaseSerialize
public virtual void BaseSerialize( GenericWriter writer )
{
writer.WriteEncodedInt( 1 ); // version
writer.Write( m_HasBeenRead );
writer.WriteEncodedInt( m_CurProgress );
writer.Write( m_HasCompleted );
ChildSerialize( writer );
}
示例12: Serialize
public void Serialize( GenericWriter writer )
{
writer.WriteEncodedInt( 0 ); // version
writer.Write( m_Type == null ? null : m_Type.FullName );
writer.WriteEncodedInt( (int) m_AmountCur );
writer.Write( (string) m_AnimalName );
writer.WriteEncodedInt( (int) m_Graphic );
}
示例13: Serialize
public void Serialize( GenericWriter writer )
{
writer.WriteEncodedInt( 0 ); // version
writer.WriteEncodedInt( (int) m_AmountMax );
writer.WriteEncodedInt( (int) m_Price );
writer.WriteEncodedInt( (int) m_Entries.Length );
for ( int i = 0; i < m_Entries.Length; ++i )
m_Entries[i].Serialize( writer );
}
示例14: Serialize
public void Serialize( GenericWriter writer )
{
if ( IsDefault )
{
writer.WriteEncodedInt( 0 ); // version
}
else
{
writer.WriteEncodedInt( 1 ); // version
writer.WriteEncodedInt( m_Type );
writer.WriteEncodedInt( m_Quantity );
}
}
示例15: Serialize
public void Serialize( GenericWriter writer )
{
writer.WriteEncodedInt( (int) 0 );
writer.Write( (Item) m_Item );
writer.Write( (DateTime) m_Expiration );
}