本文整理汇总了C#中BlueSheep.Common.IO.BigEndianWriter.WriteVarLong方法的典型用法代码示例。如果您正苦于以下问题:C# BigEndianWriter.WriteVarLong方法的具体用法?C# BigEndianWriter.WriteVarLong怎么用?C# BigEndianWriter.WriteVarLong使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlueSheep.Common.IO.BigEndianWriter
的用法示例。
在下文中一共展示了BigEndianWriter.WriteVarLong方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public virtual void Serialize(BigEndianWriter writer)
{
writer.WriteSByte(jobId);
writer.WriteSByte(jobLevel);
writer.WriteVarLong(jobXP);
writer.WriteVarLong(jobXpLevelFloor);
writer.WriteVarLong(jobXpNextLevelFloor);
}
示例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)
{
base.Serialize(writer);
writer.WriteVarLong(experience);
writer.WriteVarLong(experienceLevelFloor);
writer.WriteDouble(experienceNextLevelFloor);
writer.WriteVarInt(experienceFightDelta);
writer.WriteVarInt(experienceForGuild);
writer.WriteVarInt(experienceForMount);
writer.WriteSByte(rerollExperienceMul);
}
示例4: Serialize
public override void Serialize(BigEndianWriter writer)
{
byte flag1 = 0;
flag1 = BooleanByteWrapper.SetFlag(flag1, 0, enabled);
flag1 = BooleanByteWrapper.SetFlag(flag1, 1, abandonnedPaddock);
writer.WriteByte(flag1);
writer.WriteByte(level);
writer.WriteVarLong(expLevelFloor);
writer.WriteVarLong(experience);
writer.WriteVarLong(expNextLevelFloor);
writer.WriteInt(creationDate);
writer.WriteVarShort(nbTotalMembers);
writer.WriteVarShort(nbConnectedMembers);
}
示例5: Serialize
public virtual void Serialize(BigEndianWriter writer)
{
writer.WriteDouble(id);
writer.WriteVarInt(model);
writer.WriteUShort((ushort)ancestor.Length);
foreach (var entry in ancestor)
{
writer.WriteInt(entry);
}
writer.WriteUShort((ushort)behaviors.Length);
foreach (var entry in behaviors)
{
writer.WriteInt(entry);
}
writer.WriteUTF(name);
writer.WriteInt(ownerId);
writer.WriteVarLong(experience);
writer.WriteVarLong(experienceForLevel);
writer.WriteDouble(experienceForNextLevel);
writer.WriteSByte(level);
writer.WriteVarInt(maxPods);
writer.WriteVarInt(stamina);
writer.WriteVarInt(staminaMax);
writer.WriteVarInt(maturity);
writer.WriteVarInt(maturityForAdult);
writer.WriteVarInt(energy);
writer.WriteVarInt(energyMax);
writer.WriteInt(serenity);
writer.WriteInt(aggressivityMax);
writer.WriteVarInt(serenityMax);
writer.WriteVarInt(love);
writer.WriteVarInt(loveMax);
writer.WriteInt(fecondationTime);
writer.WriteInt(boostLimiter);
writer.WriteDouble(boostMax);
writer.WriteInt(reproductionCount);
writer.WriteVarInt(reproductionCountMax);
writer.WriteUShort((ushort)effectList.Length);
foreach (var entry in effectList)
{
entry.Serialize(writer);
}
}
示例6: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteVarShort(maxPods);
writer.WriteVarShort(prospecting);
writer.WriteVarShort(wisdom);
writer.WriteSByte(taxCollectorsCount);
writer.WriteInt(taxCollectorAttack);
writer.WriteVarInt(kamas);
writer.WriteVarLong(experience);
writer.WriteVarInt(pods);
writer.WriteVarInt(itemsValue);
}
示例7: Serialize
public virtual void Serialize(BigEndianWriter writer)
{
writer.WriteVarLong(experience);
writer.WriteVarLong(experienceLevelFloor);
writer.WriteVarLong(experienceNextLevelFloor);
writer.WriteInt(kamas);
writer.WriteVarShort(statsPoints);
writer.WriteVarShort(additionnalPoints);
writer.WriteVarShort(spellsPoints);
alignmentInfos.Serialize(writer);
writer.WriteVarInt(lifePoints);
writer.WriteVarInt(maxLifePoints);
writer.WriteVarShort(energyPoints);
writer.WriteVarShort(maxEnergyPoints);
writer.WriteVarShort(actionPointsCurrent);
writer.WriteVarShort(movementPointsCurrent);
initiative.Serialize(writer);
prospecting.Serialize(writer);
actionPoints.Serialize(writer);
movementPoints.Serialize(writer);
strength.Serialize(writer);
vitality.Serialize(writer);
wisdom.Serialize(writer);
chance.Serialize(writer);
agility.Serialize(writer);
intelligence.Serialize(writer);
range.Serialize(writer);
summonableCreaturesBoost.Serialize(writer);
reflect.Serialize(writer);
criticalHit.Serialize(writer);
writer.WriteVarShort(criticalHitWeapon);
criticalMiss.Serialize(writer);
healBonus.Serialize(writer);
allDamagesBonus.Serialize(writer);
weaponDamagesBonusPercent.Serialize(writer);
damagesBonusPercent.Serialize(writer);
trapBonus.Serialize(writer);
trapBonusPercent.Serialize(writer);
glyphBonusPercent.Serialize(writer);
permanentDamagePercent.Serialize(writer);
tackleBlock.Serialize(writer);
tackleEvade.Serialize(writer);
PAAttack.Serialize(writer);
PMAttack.Serialize(writer);
pushDamageBonus.Serialize(writer);
criticalDamageBonus.Serialize(writer);
neutralDamageBonus.Serialize(writer);
earthDamageBonus.Serialize(writer);
waterDamageBonus.Serialize(writer);
airDamageBonus.Serialize(writer);
fireDamageBonus.Serialize(writer);
dodgePALostProbability.Serialize(writer);
dodgePMLostProbability.Serialize(writer);
neutralElementResistPercent.Serialize(writer);
earthElementResistPercent.Serialize(writer);
waterElementResistPercent.Serialize(writer);
airElementResistPercent.Serialize(writer);
fireElementResistPercent.Serialize(writer);
neutralElementReduction.Serialize(writer);
earthElementReduction.Serialize(writer);
waterElementReduction.Serialize(writer);
airElementReduction.Serialize(writer);
fireElementReduction.Serialize(writer);
pushDamageReduction.Serialize(writer);
criticalDamageReduction.Serialize(writer);
pvpNeutralElementResistPercent.Serialize(writer);
pvpEarthElementResistPercent.Serialize(writer);
pvpWaterElementResistPercent.Serialize(writer);
pvpAirElementResistPercent.Serialize(writer);
pvpFireElementResistPercent.Serialize(writer);
pvpNeutralElementReduction.Serialize(writer);
pvpEarthElementReduction.Serialize(writer);
pvpWaterElementReduction.Serialize(writer);
pvpAirElementReduction.Serialize(writer);
pvpFireElementReduction.Serialize(writer);
writer.WriteUShort((ushort)spellModifications.Length);
foreach (var entry in spellModifications)
{
entry.Serialize(writer);
}
writer.WriteInt(probationTime);
}
示例8: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteSByte(breed);
writer.WriteBoolean(sex);
writer.WriteVarShort(rank);
writer.WriteVarLong(givenExperience);
writer.WriteSByte(experienceGivenPercent);
writer.WriteVarInt(rights);
writer.WriteSByte(connected);
writer.WriteSByte(alignmentSide);
writer.WriteUShort(hoursSinceLastConnection);
writer.WriteSByte(moodSmileyId);
writer.WriteInt(accountId);
writer.WriteInt(achievementPoints);
writer.WriteShort(status.TypeId);
status.Serialize(writer);
}