本文整理汇总了C#中ICustomDataOutput.WriteByte方法的典型用法代码示例。如果您正苦于以下问题:C# ICustomDataOutput.WriteByte方法的具体用法?C# ICustomDataOutput.WriteByte怎么用?C# ICustomDataOutput.WriteByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICustomDataOutput
的用法示例。
在下文中一共展示了ICustomDataOutput.WriteByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public virtual void Serialize(ICustomDataOutput writer)
{
writer.WriteSByte(jobId);
writer.WriteByte(jobLevel);
writer.WriteBoolean(free);
writer.WriteByte(minLevel);
}
示例2: Serialize
public override void Serialize(ICustomDataOutput writer)
{
base.Serialize(writer);
writer.WriteByte(level);
guildInfo.Serialize(writer);
writer.WriteInt(experienceForGuild);
}
示例3: Serialize
public override void Serialize(ICustomDataOutput writer)
{
byte flag1 = 0;
flag1 = BooleanByteWrapper.SetFlag(flag1, 0, canChangeName);
flag1 = BooleanByteWrapper.SetFlag(flag1, 1, canChangeEmblem);
writer.WriteByte(flag1);
}
示例4: Serialize
public override void Serialize(ICustomDataOutput writer)
{
base.Serialize(writer);
writer.WriteSByte(deathState);
writer.WriteVarUhShort(deathCount);
writer.WriteByte(deathMaxLevel);
}
示例5: Serialize
public override void Serialize(ICustomDataOutput writer)
{
base.Serialize(writer);
writer.WriteSByte(companionGenericId);
writer.WriteByte(level);
writer.WriteInt(masterId);
}
示例6: Serialize
public virtual void Serialize(ICustomDataOutput writer)
{
writer.WriteVarUhInt(playerId);
writer.WriteUTF(playerName);
writer.WriteSByte(breed);
writer.WriteBoolean(sex);
writer.WriteByte(level);
}
示例7: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteUShort((ushort)emoteIds.Count());
foreach (var entry in emoteIds)
{
writer.WriteByte(entry);
}
}
示例8: Serialize
public override void Serialize(ICustomDataOutput writer)
{
base.Serialize(writer);
writer.WriteShort(identification.TypeId);
identification.Serialize(writer);
writer.WriteByte(guildLevel);
writer.WriteInt(taxCollectorAttack);
}
示例9: Serialize
public override void Serialize(ICustomDataOutput writer)
{
byte flag1 = 0;
flag1 = BooleanByteWrapper.SetFlag(flag1, 0, success);
flag1 = BooleanByteWrapper.SetFlag(flag1, 1, automaticAction);
writer.WriteByte(flag1);
writer.WriteInt(actionId);
}
示例10: Serialize
public override void Serialize(ICustomDataOutput writer)
{
base.Serialize(writer);
writer.WriteVarUhShort(initiative);
writer.WriteVarUhInt(lifePoints);
writer.WriteVarUhInt(maxLifePoints);
writer.WriteVarUhShort(prospecting);
writer.WriteByte(regenRate);
}
示例11: Serialize
public virtual void Serialize(ICustomDataOutput writer)
{
byte flag1 = 0;
flag1 = BooleanByteWrapper.SetFlag(flag1, 0, isSecret);
flag1 = BooleanByteWrapper.SetFlag(flag1, 1, isRestrictedToPartyOnly);
flag1 = BooleanByteWrapper.SetFlag(flag1, 2, isClosed);
flag1 = BooleanByteWrapper.SetFlag(flag1, 3, isAskingForHelp);
writer.WriteByte(flag1);
}
示例12: Serialize
public override void Serialize(ICustomDataOutput writer)
{
byte flag1 = 0;
flag1 = BooleanByteWrapper.SetFlag(flag1, 0, canBeCancelled);
flag1 = BooleanByteWrapper.SetFlag(flag1, 1, canSayReady);
flag1 = BooleanByteWrapper.SetFlag(flag1, 2, isFightStarted);
writer.WriteByte(flag1);
writer.WriteShort(timeMaxBeforeFightStart);
writer.WriteSByte(fightType);
}
示例13: Serialize
public override void Serialize(ICustomDataOutput writer)
{
base.Serialize(writer);
writer.WriteByte(level);
writer.WriteUShort((ushort)additional.Count());
foreach (var entry in additional)
{
writer.WriteShort(entry.TypeId);
entry.Serialize(writer);
}
}
示例14: 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);
}
示例15: Serialize
public override void Serialize(ICustomDataOutput writer)
{
writer.WriteVarUhShort(serverId);
writer.WriteUTF(address);
writer.WriteUShort(port);
writer.WriteBoolean(canCreateNewCharacter);
writer.WriteVarUhShort((ushort)ticket.Count());
foreach (var entry in ticket)
{
writer.WriteByte(entry);
}
}