本文整理匯總了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 );
}