本文整理汇总了C#中IValueWriter.WriteUInt32方法的典型用法代码示例。如果您正苦于以下问题:C# IValueWriter.WriteUInt32方法的具体用法?C# IValueWriter.WriteUInt32怎么用?C# IValueWriter.WriteUInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IValueWriter
的用法示例。
在下文中一共展示了IValueWriter.WriteUInt32方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WritePayload
public override void WritePayload(IValueWriter writerm)
{
writerm.WriteUInt32(this.NetworkID);
writerm.WriteString(this.CharacterName);
writerm.WriteByte((byte)this.Action);
}
示例2: WritePayload
public override void WritePayload(IValueWriter writer)
{
writer.WriteUInt32 (this.NetworkID);
writer.WriteInt32 (this.X);
writer.WriteInt32 (this.Y);
writer.WriteInt32 (this.Direction);
writer.WriteString (this.Animation);
}
示例3: WritePayload
public override void WritePayload(IValueWriter writer)
{
writer.WriteUInt32(this.NetworkID);
}
示例4: WritePayload
public override void WritePayload(IValueWriter writer)
{
writer.WriteUInt32 (this.NetworkID);
writer.WriteInt32 ((int) this.Activation);
}
示例5: WritePayload
public override void WritePayload(IValueWriter writerm)
{
writerm.WriteUInt32(this.RequestedPlayerNetworkID);
}
示例6: WritePayload
public override void WritePayload(ISerializationContext context, IValueWriter writer)
{
writer.WriteUInt32 (EntityID);
}
示例7: WriteEntity
private void WriteEntity(NetworkEntity entity, ISerializationContext context, IValueWriter writer)
{
writer.WriteString (entity.EntityName);
writer.WriteUInt32 (entity.NetworkID);
writer.WriteInt32 (entity.Fields.Count);
foreach (var field in entity.Fields)
{
writer.WriteString (field.Key);
// Write the field type
ushort typeID;
context.TypeMap.GetTypeId (field.Value.Value.GetType (), out typeID);
writer.WriteUInt16 (typeID);
if (field.Value.Value is Vector2)
writer.Write (context, (Vector2)field.Value.Value, Vector2Serializer.Instance);
else if (field.Value.Value is Vector3)
writer.Write (context, (Vector3)field.Value.Value, Vector3Serializer.Instance);
else if (field.Value.Value is string)
writer.WriteString ((string)field.Value.Value);
else
writer.Write (context, field.Value.Value, field.Value.Type);
}
}
示例8: WritePayload
public override void WritePayload(IValueWriter writerm)
{
writerm.WriteUInt32(this.NetworkIDAssigned);
}