本文整理汇总了C#中BlueSheep.Common.IO.BigEndianWriter.WriteVarInt方法的典型用法代码示例。如果您正苦于以下问题:C# BigEndianWriter.WriteVarInt方法的具体用法?C# BigEndianWriter.WriteVarInt怎么用?C# BigEndianWriter.WriteVarInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlueSheep.Common.IO.BigEndianWriter
的用法示例。
在下文中一共展示了BigEndianWriter.WriteVarInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public virtual void Serialize(BigEndianWriter writer)
{
writer.WriteVarInt(guildId);
writer.WriteVarInt(leaderId);
writer.WriteByte(guildLevel);
writer.WriteByte(nbMembers);
}
示例2: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteVarLong(mountUid);
writer.WriteSByte(mountLocation);
writer.WriteVarInt(mountFoodUid);
writer.WriteVarInt(quantity);
}
示例3: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteSByte(paymentType);
writer.WriteBoolean(bAdd);
writer.WriteVarInt(objectToMoveId);
writer.WriteVarInt(quantity);
}
示例4: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteVarInt(memberId);
writer.WriteVarShort(rank);
writer.WriteSByte(experienceGivenPercent);
writer.WriteVarInt(rights);
}
示例5: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteVarInt(entityId);
writer.WriteVarInt(elemId);
writer.WriteVarShort(skillId);
writer.WriteVarShort(duration);
}
示例6: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteInt(fightId);
writer.WriteVarInt(sourceId);
writer.WriteVarInt(targetId);
writer.WriteBoolean(accept);
}
示例7: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteVarInt(symbioteUID);
writer.WriteByte(symbiotePos);
writer.WriteVarInt(hostUID);
writer.WriteByte(hostPos);
}
示例8: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteVarShort(challengeId);
writer.WriteInt(targetId);
writer.WriteVarInt(xpBonus);
writer.WriteVarInt(dropBonus);
}
示例9: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteVarInt(requestId);
writer.WriteUTF(playerName);
writer.WriteVarInt(playerId);
look.Serialize(writer);
}
示例10: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteInt(requestId);
writer.WriteVarInt(requesterId);
writer.WriteVarShort(requesterCellId);
writer.WriteVarInt(requestedId);
writer.WriteVarShort(requestedCellId);
}
示例11: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteVarShort(firstNameId);
writer.WriteVarShort(lastNameId);
writer.WriteByte(level);
writer.WriteVarInt(guildId);
writer.WriteVarInt(uid);
}
示例12: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteVarShort(initiative);
writer.WriteVarInt(lifePoints);
writer.WriteVarInt(maxLifePoints);
writer.WriteVarShort(prospecting);
writer.WriteByte(regenRate);
}
示例13: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteVarShort(dungeonId);
writer.WriteVarInt(inviterId);
writer.WriteUShort((ushort)invalidBuddiesIds.Length);
foreach (var entry in invalidBuddiesIds)
{
writer.WriteVarInt(entry);
}
}
示例14: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteInt(firstCharacterId);
writer.WriteVarInt(firstCharacterCurrentWeight);
writer.WriteVarInt(firstCharacterMaxWeight);
writer.WriteInt(secondCharacterId);
writer.WriteVarInt(secondCharacterCurrentWeight);
writer.WriteVarInt(secondCharacterMaxWeight);
}
示例15: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteInt(lastTimeSlotModificationDate);
writer.WriteVarInt(lastTimeSlotModificationAuthorGuildId);
writer.WriteVarInt(lastTimeSlotModificationAuthorId);
writer.WriteUTF(lastTimeSlotModificationAuthorName);
writer.WriteUShort((ushort)modulesItemIds.Length);
foreach (var entry in modulesItemIds)
{
writer.WriteVarInt(entry);
}
}