本文整理汇总了C#中Network.WriteClassicString方法的典型用法代码示例。如果您正苦于以下问题:C# Network.WriteClassicString方法的具体用法?C# Network.WriteClassicString怎么用?C# Network.WriteClassicString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Network
的用法示例。
在下文中一共展示了Network.WriteClassicString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnSend
/// <summary>
/// Sends the specified writer.
/// </summary>
/// <param name="writer">The writer.</param>
/// <param name="version">The version.</param>
/// <remarks></remarks>
protected override void OnSend(Network.BigEndianStream writer, int version)
{
if (writer == null)
throw new ArgumentNullException("writer");
writer.Write(Code);
writer.Write(ProtocolVersion);
writer.WriteClassicString(Servername);
writer.WriteClassicString(ServerMotD);
writer.Write(Usertype);
}
示例2: OnSend
/// <summary>
/// Sends the specified writer.
/// </summary>
/// <param name="writer">The writer.</param>
/// <param name="version">The version.</param>
/// <remarks></remarks>
protected override void OnSend(Network.BigEndianStream writer, int version)
{
if (writer == null)
throw new ArgumentNullException("writer");
writer.Write(Code);
writer.WriteClassicString(Reason);
}
示例3: OnSend
/// <summary>
/// Sends the specified writer.
/// </summary>
/// <param name="writer">The writer.</param>
/// <param name="version">The version.</param>
/// <remarks></remarks>
protected override void OnSend(Network.BigEndianStream writer, int version)
{
if (writer == null)
throw new ArgumentNullException("writer");
writer.Write(Code);
writer.Write(PlayerID);
writer.WriteClassicString(PlayerName);
writer.Write(PositionX);
writer.Write(PositionY);
writer.Write(PositionZ);
writer.Write(Yaw);
writer.Write(Pitch);
}