本文整理汇总了C#中BlueSheep.Common.IO.BigEndianWriter.WriteUShort方法的典型用法代码示例。如果您正苦于以下问题:C# BigEndianWriter.WriteUShort方法的具体用法?C# BigEndianWriter.WriteUShort怎么用?C# BigEndianWriter.WriteUShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlueSheep.Common.IO.BigEndianWriter
的用法示例。
在下文中一共展示了BigEndianWriter.WriteUShort方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteInt(accountId);
writer.WriteBoolean(tutorialAvailable);
writer.WriteUShort(breedsVisible);
writer.WriteUShort(breedsAvailable);
writer.WriteSByte(status);
}
示例2: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteUShort((ushort)ids.Length);
foreach (var entry in ids)
{
writer.WriteInt(entry);
}
writer.WriteUShort((ushort)deadsIds.Length);
foreach (var entry in deadsIds)
{
writer.WriteInt(entry);
}
}
示例3: Serialize
public override void Serialize(BigEndianWriter 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);
}
}
示例4: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteUShort((ushort)playerIds.Length);
foreach (var entry in playerIds)
{
writer.WriteVarInt(entry);
}
writer.WriteUShort((ushort)enable.Length);
foreach (var entry in enable)
{
writer.WriteSByte(entry);
}
}
示例5: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteUShort((ushort)finishedAchievementsIds.Length);
foreach (var entry in finishedAchievementsIds)
{
writer.WriteVarShort(entry);
}
writer.WriteUShort((ushort)rewardableAchievements.Length);
foreach (var entry in rewardableAchievements)
{
entry.Serialize(writer);
}
}
示例6: Serialize
public override void Serialize(BigEndianWriter 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);
}
}
示例7: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteUShort((ushort)ids.Length);
foreach (var entry in ids)
{
writer.WriteVarShort(entry);
}
writer.WriteUShort((ushort)avgPrices.Length);
foreach (var entry in avgPrices)
{
writer.WriteVarInt(entry);
}
}
示例8: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteUShort((ushort)availables.Length);
foreach (var entry in availables)
{
writer.WriteVarShort(entry);
}
writer.WriteUShort((ushort)unavailables.Length);
foreach (var entry in unavailables)
{
writer.WriteVarShort(entry);
}
}
示例9: Serialize
public override void Serialize(BigEndianWriter 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);
}
}
示例10: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteUShort((ushort)cells.Length);
foreach (var entry in cells)
{
writer.WriteVarShort(entry);
}
writer.WriteUShort((ushort)referenceIds.Length);
foreach (var entry in referenceIds)
{
writer.WriteVarShort(entry);
}
}
示例11: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteVarShort(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.WriteVarInt(entry);
}
}
示例12: Serialize
public virtual void Serialize(BigEndianWriter writer)
{
writer.WriteVarShort(id);
writer.WriteUShort((ushort)finishedObjective.Length);
foreach (var entry in finishedObjective)
{
entry.Serialize(writer);
}
writer.WriteUShort((ushort)startedObjectives.Length);
foreach (var entry in startedObjectives)
{
entry.Serialize(writer);
}
}
示例13: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteUShort((ushort)positionsForChallengers.Length);
foreach (var entry in positionsForChallengers)
{
writer.WriteVarShort(entry);
}
writer.WriteUShort((ushort)positionsForDefenders.Length);
foreach (var entry in positionsForDefenders)
{
writer.WriteVarShort(entry);
}
writer.WriteSByte(teamNumber);
}
示例14: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteVarShort(messageId);
writer.WriteUShort((ushort)dialogParams.Length);
foreach (var entry in dialogParams)
{
writer.WriteUTF(entry);
}
writer.WriteUShort((ushort)visibleReplies.Length);
foreach (var entry in visibleReplies)
{
writer.WriteVarShort(entry);
}
}
示例15: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteUShort((ushort)titles.Length);
foreach (var entry in titles)
{
writer.WriteVarShort(entry);
}
writer.WriteUShort((ushort)ornaments.Length);
foreach (var entry in ornaments)
{
writer.WriteVarShort(entry);
}
writer.WriteVarShort(activeTitle);
writer.WriteVarShort(activeOrnament);
}