本文整理汇总了C#中IDataWriter.WriteUTF方法的典型用法代码示例。如果您正苦于以下问题:C# IDataWriter.WriteUTF方法的具体用法?C# IDataWriter.WriteUTF怎么用?C# IDataWriter.WriteUTF使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataWriter
的用法示例。
在下文中一共展示了IDataWriter.WriteUTF方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUTF(name);
writer.WriteShort(worldX);
writer.WriteShort(worldY);
writer.WriteUTF(ownername);
}
示例2: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteSByte(channel);
writer.WriteUTF(content);
writer.WriteInt(timestamp);
writer.WriteUTF(fingerprint);
}
示例3: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteBoolean(self);
writer.WriteSByte(position);
writer.WriteUTF(accountNickname);
writer.WriteUTF(characterName);
writer.WriteShort(areaId);
}
示例4: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteShort(serverId);
writer.WriteUTF(address);
writer.WriteUShort(port);
writer.WriteBoolean(canCreateNewCharacter);
writer.WriteUTF(ticket);
}
示例5: Save
public void Save(IDataWriter writer)
{
writer.WriteUTF(Name);
writer.WriteUTF(EMail);
writer.WriteUTF(City);
writer.WriteUTF(Country);
writer.WriteUTF(RegTime.ToString("yyyy-MM-dd HH:mm:ss"));
}
示例6: Serialize
public virtual void Serialize(IDataWriter writer)
{
writer.WriteInt(uid);
writer.WriteUTF(title);
writer.WriteUTF(text);
writer.WriteUTF(descUrl);
writer.WriteUTF(pictureUrl);
writer.WriteUShort((ushort)items.Length);
foreach (var entry in items)
{
entry.Serialize(writer);
}
}
示例7: Serialize
public override void Serialize(IDataWriter writer)
{
byte flag1 = 0;
flag1 = BooleanByteWrapper.SetFlag(flag1, 0, hasRights);
flag1 = BooleanByteWrapper.SetFlag(flag1, 1, wasAlreadyConnected);
writer.WriteByte(flag1);
writer.WriteUTF(login);
writer.WriteUTF(nickname);
writer.WriteInt(accountId);
writer.WriteSByte(communityId);
writer.WriteUTF(secretQuestion);
writer.WriteDouble(subscriptionEndDate);
writer.WriteDouble(accountCreation);
}
示例8: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUTF(collectorName);
writer.WriteShort(worldX);
writer.WriteShort(worldY);
writer.WriteInt(mapId);
writer.WriteShort(subAreaId);
writer.WriteUTF(userName);
writer.WriteDouble(experience);
writer.WriteUShort((ushort)objectsInfos.Length);
foreach (var entry in objectsInfos)
{
entry.Serialize(writer);
}
}
示例9: Serialize
public virtual void Serialize(IDataWriter writer)
{
writer.WriteUTF(uid);
writer.WriteShort(figure);
writer.WriteShort(pedestal);
writer.WriteBoolean(bound);
}
示例10: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteBoolean(hireOrFire);
basicInfos.Serialize(writer);
writer.WriteInt(playerId);
writer.WriteUTF(playerName);
}
示例11: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteInt(requestId);
writer.WriteUTF(playerName);
writer.WriteInt(playerId);
look.Serialize(writer);
}
示例12: Serialize
public override void Serialize(IDataWriter writer)
{
base.Serialize(writer);
writer.WriteUTF(playerName);
writer.WriteSByte(breed);
writer.WriteBoolean(sex);
}
示例13: Serialize
public override void Serialize(IDataWriter writer)
{
base.Serialize(writer);
writer.WriteInt(senderId);
writer.WriteUTF(senderName);
writer.WriteInt(senderAccountId);
}
示例14: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteShort(msgId);
writer.WriteUInt(timeStamp);
writer.WriteUTF(owner);
writer.WriteUInt(objectGenericId);
}
示例15: Serialize
public override void Serialize(IDataWriter writer)
{
base.Serialize(writer);
writer.WriteUTF(name);
writer.WriteInt(id);
writer.WriteSByte(relationType);
}