本文整理汇总了C#中ICustomDataOutput.WriteUShort方法的典型用法代码示例。如果您正苦于以下问题:C# ICustomDataOutput.WriteUShort方法的具体用法?C# ICustomDataOutput.WriteUShort怎么用?C# ICustomDataOutput.WriteUShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICustomDataOutput
的用法示例。
在下文中一共展示了ICustomDataOutput.WriteUShort方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteUTF(address);
writer.WriteUShort(port);
writer.WriteUShort((ushort)ticket.Count());
foreach (var entry in ticket)
{
writer.WriteSByte(entry);
}
}
示例2: Serialize
public override void Serialize(ICustomDataOutput writer)
{
byte flag1 = 0;
flag1 = BooleanByteWrapper.SetFlag(flag1, 0, tutorialAvailable);
flag1 = BooleanByteWrapper.SetFlag(flag1, 1, canCreateNewCharacter);
writer.WriteByte(flag1);
writer.WriteInt(accountId);
writer.WriteUShort(breedsVisible);
writer.WriteUShort(breedsAvailable);
writer.WriteSByte(status);
}
示例3: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteUShort((ushort)targetIds.Count());
foreach (var entry in targetIds)
{
writer.WriteInt(entry);
}
writer.WriteUShort((ushort)targetCells.Count());
foreach (var entry in targetCells)
{
writer.WriteShort(entry);
}
}
示例4: Serialize
public override void Serialize(ICustomDataOutput 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);
}
}
示例5: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteUShort((ushort)playerIds.Count());
foreach (var entry in playerIds)
{
writer.WriteVarUhInt(entry);
}
writer.WriteUShort((ushort)enable.Count());
foreach (var entry in enable)
{
writer.WriteSByte(entry);
}
}
示例6: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteUShort((ushort)finishedAchievementsIds.Count());
foreach (var entry in finishedAchievementsIds)
{
writer.WriteVarUhShort(entry);
}
writer.WriteUShort((ushort)rewardableAchievements.Count());
foreach (var entry in rewardableAchievements)
{
entry.Serialize(writer);
}
}
示例7: Serialize
public virtual void Serialize(ICustomDataOutput writer)
{
writer.WriteUShort((ushort)questsToValidId.Count());
foreach (var entry in questsToValidId)
{
writer.WriteVarUhShort(entry);
}
writer.WriteUShort((ushort)questsToStartId.Count());
foreach (var entry in questsToStartId)
{
writer.WriteVarUhShort(entry);
}
}
示例8: Serialize
public virtual void Serialize(ICustomDataOutput writer)
{
writer.WriteVarUhShort(id);
writer.WriteUShort((ushort)finishedObjective.Count());
foreach (var entry in finishedObjective)
{
entry.Serialize(writer);
}
writer.WriteUShort((ushort)startedObjectives.Count());
foreach (var entry in startedObjectives)
{
entry.Serialize(writer);
}
}
示例9: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteUShort((ushort)positionsForChallengers.Count());
foreach (var entry in positionsForChallengers)
{
writer.WriteVarUhShort(entry);
}
writer.WriteUShort((ushort)positionsForDefenders.Count());
foreach (var entry in positionsForDefenders)
{
writer.WriteVarUhShort(entry);
}
writer.WriteSByte(teamNumber);
}
示例10: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteUShort((ushort)titles.Count());
foreach (var entry in titles)
{
writer.WriteVarUhShort(entry);
}
writer.WriteUShort((ushort)ornaments.Count());
foreach (var entry in ornaments)
{
writer.WriteVarUhShort(entry);
}
writer.WriteVarUhShort(activeTitle);
writer.WriteVarUhShort(activeOrnament);
}
示例11: Serialize
public override void Serialize(ICustomDataOutput writer)
{
allianceInfos.Serialize(writer);
writer.WriteUShort((ushort)guilds.Count());
foreach (var entry in guilds)
{
entry.Serialize(writer);
}
writer.WriteUShort((ushort)prisms.Count());
foreach (var entry in prisms)
{
writer.WriteShort(entry.TypeId);
entry.Serialize(writer);
}
}
示例12: Serialize
public virtual void Serialize(ICustomDataOutput writer)
{
writer.WriteVarUhInt(objectUID);
writer.WriteUShort((ushort)effects.Count());
foreach (var entry in effects)
{
writer.WriteShort(entry.TypeId);
entry.Serialize(writer);
}
writer.WriteUShort((ushort)prices.Count());
foreach (var entry in prices)
{
writer.WriteInt(entry);
}
}
示例13: Serialize
public virtual void Serialize(ICustomDataOutput writer)
{
writer.WriteInt(collectorId);
writer.WriteUShort((ushort)allyCharactersInformations.Count());
foreach (var entry in allyCharactersInformations)
{
writer.WriteShort(entry.TypeId);
entry.Serialize(writer);
}
writer.WriteUShort((ushort)enemyCharactersInformations.Count());
foreach (var entry in enemyCharactersInformations)
{
writer.WriteShort(entry.TypeId);
entry.Serialize(writer);
}
}
示例14: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteUShort((ushort)dungeonIds.Count());
foreach (var entry in dungeonIds)
{
writer.WriteVarUhShort(entry);
}
}
示例15: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteUShort((ushort)availableLegendaryIds.Count());
foreach (var entry in availableLegendaryIds)
{
writer.WriteVarUhShort(entry);
}
}