本文整理汇总了C#中IDataWriter.WriteUShort方法的典型用法代码示例。如果您正苦于以下问题:C# IDataWriter.WriteUShort方法的具体用法?C# IDataWriter.WriteUShort怎么用?C# IDataWriter.WriteUShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataWriter
的用法示例。
在下文中一共展示了IDataWriter.WriteUShort方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(IDataWriter writer)
{
base.Serialize(writer);
writer.WriteUShort(honor);
writer.WriteUShort(honorGradeFloor);
writer.WriteUShort(honorNextGradeFloor);
writer.WriteBoolean(pvpEnabled);
}
示例2: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort(id);
writer.WriteUShort((ushort)parameters.Count());
foreach (var entry in parameters)
{
writer.WriteUTF(entry);
}
writer.WriteBoolean(forceOpen);
}
示例3: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)cells.Length);
foreach (var entry in cells)
{
writer.WriteShort(entry);
}
writer.WriteUShort((ushort)referenceIds.Length);
foreach (var entry in referenceIds)
{
writer.WriteInt(entry);
}
}
示例4: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)targetIds.Length);
foreach (var entry in targetIds)
{
writer.WriteInt(entry);
}
writer.WriteUShort((ushort)targetCells.Length);
foreach (var entry in targetCells)
{
writer.WriteShort(entry);
}
}
示例5: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)angelsSubAreas.Length);
foreach (var entry in angelsSubAreas)
{
writer.WriteShort(entry);
}
writer.WriteUShort((ushort)evilsSubAreas.Length);
foreach (var entry in evilsSubAreas)
{
writer.WriteShort(entry);
}
}
示例6: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)channels.Length);
foreach (var entry in channels)
{
writer.WriteSByte(entry);
}
writer.WriteUShort((ushort)disallowed.Length);
foreach (var entry in disallowed)
{
writer.WriteSByte(entry);
}
}
示例7: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)startedAchievements.Length);
foreach (var entry in startedAchievements)
{
entry.Serialize(writer);
}
writer.WriteUShort((ushort)finishedAchievements.Length);
foreach (var entry in finishedAchievements)
{
entry.Serialize(writer);
}
}
示例8: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)availables.Length);
foreach (var entry in availables)
{
writer.WriteShort(entry);
}
writer.WriteUShort((ushort)unavailables.Length);
foreach (var entry in unavailables)
{
writer.WriteShort(entry);
}
}
示例9: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)ids.Length);
foreach (var entry in ids)
{
writer.WriteShort(entry);
}
writer.WriteUShort((ushort)avgPrices.Length);
foreach (var entry in avgPrices)
{
writer.WriteInt(entry);
}
}
示例10: Serialize
public virtual void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)questsToValidId.Count());
foreach (var entry in questsToValidId)
{
writer.WriteShort(entry);
}
writer.WriteUShort((ushort)questsToStartId.Count());
foreach (var entry in questsToStartId)
{
writer.WriteShort(entry);
}
}
示例11: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)finishedAchievementsIds.Length);
foreach (var entry in finishedAchievementsIds)
{
writer.WriteShort(entry);
}
writer.WriteUShort((ushort)rewardableAchievements.Length);
foreach (var entry in rewardableAchievements)
{
entry.Serialize(writer);
}
}
示例12: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteUShort((ushort)ids.Count());
foreach (var entry in ids)
{
writer.WriteInt(entry);
}
writer.WriteUShort((ushort)deadsIds.Count());
foreach (var entry in deadsIds)
{
writer.WriteInt(entry);
}
}
示例13: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteShort(dungeonId);
writer.WriteUShort((ushort)addedPlayers.Length);
foreach (var entry in addedPlayers)
{
entry.Serialize(writer);
}
writer.WriteUShort((ushort)removedPlayersIds.Length);
foreach (var entry in removedPlayersIds)
{
writer.WriteInt(entry);
}
}
示例14: Serialize
public virtual void Serialize(IDataWriter writer)
{
writer.WriteInt(collectorId);
writer.WriteUShort((ushort)allyCharactersInformations.Length);
foreach (var entry in allyCharactersInformations)
{
entry.Serialize(writer);
}
writer.WriteUShort((ushort)enemyCharactersInformations.Length);
foreach (var entry in enemyCharactersInformations)
{
entry.Serialize(writer);
}
}
示例15: Serialize
public override void Serialize(IDataWriter writer)
{
writer.WriteInt(fightId);
writer.WriteUShort((ushort)attackers.Length);
foreach (var entry in attackers)
{
entry.Serialize(writer);
}
writer.WriteUShort((ushort)defenders.Length);
foreach (var entry in defenders)
{
entry.Serialize(writer);
}
}