本文整理汇总了C#中Server.GenericWriter类的典型用法代码示例。如果您正苦于以下问题:C# GenericWriter类的具体用法?C# GenericWriter怎么用?C# GenericWriter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GenericWriter类属于Server命名空间,在下文中一共展示了GenericWriter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)1);
writer.Write((int)m_PlantHue);
}
示例2: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( (int) 0 );
writer.Write( m_Points );
}
示例3: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int)0 ); // version
writer.Write( (Item)m_stone );
}
示例4: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int)0 );
writer.Write( m_StrengthBonus );
}
示例5: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0);
// version 0
}
示例6: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 ); // version
writer.Write( m_AllowCombat );
}
示例7: Serialize
public void Serialize( GenericWriter writer )
{
writer.Write( m_Lines.Length );
for ( int i = 0; i < m_Lines.Length; ++i )
writer.Write( m_Lines[i] );
}
示例8: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
writer.Write( (int) SkillBonus );
}
示例9: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)4); //version
writer.Write(m_WallCoordinates.Count);
for (int i = 0; i < m_WallCoordinates.Count; i++)
writer.Write((Point3D)m_WallCoordinates[i]);
writer.Write(m_StartLocations.Count);
for (int i = 0; i < m_StartLocations.Count; i++)
writer.Write((Point3D)m_StartLocations[i]);
writer.Write(m_GameTime);
writer.Write((Item)m_RegionControl);
writer.Write(m_ExitLosers);
writer.Write(m_LinkBombs);
writer.Write(m_ChanceForUpgrade);
writer.Write(m_DanageWhileFS);
writer.Write(m_WriteScoreboard);
writer.Write(m_ExitWinner);
writer.Write(m_ExitOnDraw);
writer.Write(m_AutoStart);
writer.Write(m_KeepOpenJoin);
}
示例10: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 ); // version
writer.Write( (int)m_Level );
}
示例11: Save
public void Save( GenericWriter writer )
{
writer.Write( (int) 0 ); // version
writer.Write( m_First );
writer.Write( m_Second );
}
示例12: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0);
writer.Write((bool)m_IsRewardItem);
}
示例13: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
writer.Write((PlayerMobile)m_Taken);
writer.Write((PlayerMobile)m_From);
}
示例14: Serialize
public override void Serialize(GenericWriter writer)
{
writer.WriteVersion(0);
// Version 0
writer.Write(_Enabled);
}
示例15: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 );
writer.Write( m_IsShipwreckedItem );
}