当前位置: 首页>>代码示例>>C#>>正文


C# Utils.WriteDouble方法代码示例

本文整理汇总了C#中System.Utils.WriteDouble方法的典型用法代码示例。如果您正苦于以下问题:C# Utils.WriteDouble方法的具体用法?C# Utils.WriteDouble怎么用?C# Utils.WriteDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Utils的用法示例。


在下文中一共展示了Utils.WriteDouble方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: serialize

 public static void serialize(Utils.Objects.Packet sender, Global.Account acc)
 {
     int wrapper = 0;
     Utils.BooleanByteWrapper.setFlag(ref wrapper, 0, (int)acc.GmLvl > 0);
     Utils.BooleanByteWrapper.setFlag(ref wrapper, 1, acc.Connected);
     sender.WriteByte( (byte)wrapper );
     sender.WriteUTF("[" + acc.GmLvl + "] " + acc.Nickname);
     sender.WriteInt((int)acc.Id);
     sender.WriteByte(0); // communityID
     sender.WriteUTF(""); // question
     sender.WriteDouble(31536000000); // aboTime (un an en millisecondes)
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:12,代码来源:IdentificationSuccessMessage.cs

示例2: serialize

        public void serialize(Utils.Objects.Packet sender)
        {
            sender.WriteDouble(experience);
            sender.WriteDouble(experienceLevelFloor);
            sender.WriteDouble(experienceNextLevelFloor);
            sender.WriteInt(kamas);
            sender.WriteInt(statsPoints);
            sender.WriteInt(spellsPoints);
            alignmentInfos.serialize(sender);
            sender.WriteInt(lifePoints);
            sender.WriteInt(maxLifePoints);
            sender.WriteShort((short)energyPoints);
            sender.WriteShort((short)maxEnergyPoints);
            sender.WriteShort((short)actionPointsCurrent);
            sender.WriteShort((short)movementPointsCurrent);
            initiative.serialize(sender);
            prospecting.serialize(sender);
            actionPoints.serialize(sender);
            movementPoints.serialize(sender);
            strength.serialize(sender);
            vitality.serialize(sender);
            wisdom.serialize(sender);
            chance.serialize(sender);
            agility.serialize(sender);
            intelligence.serialize(sender);
            range.serialize(sender);
            summonableCreaturesBoost.serialize(sender);
            reflect.serialize(sender);
            criticalHit.serialize(sender);
            sender.WriteShort((short)criticalHitWeapon);
            criticalMiss.serialize(sender);
            healBonus.serialize(sender);
            allDamagesBonus.serialize(sender);
            weaponDamagesBonusPercent.serialize(sender);
            damagesBonusPercent.serialize(sender);
            trapBonus.serialize(sender);
            trapBonusPercent.serialize(sender);
            permanentDamagePercent.serialize(sender);
            tackleBlock.serialize(sender);
            tackleEvade.serialize(sender);
            PAAttack.serialize(sender);
            PMAttack.serialize(sender);
            pushDamageBonus.serialize(sender);
            criticalDamageBonus.serialize(sender);
            neutralDamageBonus.serialize(sender);
            earthDamageBonus.serialize(sender);
            waterDamageBonus.serialize(sender);
            airDamageBonus.serialize(sender);
            fireDamageBonus.serialize(sender);
            dodgePALostProbability.serialize(sender);
            dodgePMLostProbability.serialize(sender);
            neutralElementResistPercent.serialize(sender);
            earthElementResistPercent.serialize(sender);
            waterElementResistPercent.serialize(sender);
            airElementResistPercent.serialize(sender);
            fireElementResistPercent.serialize(sender);
            neutralElementReduction.serialize(sender);
            earthElementReduction.serialize(sender);
            waterElementReduction.serialize(sender);
            airElementReduction.serialize(sender);
            fireElementReduction.serialize(sender);
            pushDamageReduction.serialize(sender);
            criticalDamageReduction.serialize(sender);
            pvpNeutralElementResistPercent.serialize(sender);
            pvpEarthElementResistPercent.serialize(sender);
            pvpWaterElementResistPercent.serialize(sender);
            pvpAirElementResistPercent.serialize(sender);
            pvpFireElementResistPercent.serialize(sender);
            pvpNeutralElementReduction.serialize(sender);
            pvpEarthElementReduction.serialize(sender);
            pvpWaterElementReduction.serialize(sender);
            pvpAirElementReduction.serialize(sender);
            pvpFireElementReduction.serialize(sender);

            sender.WriteShort(0); // nSpellModifications
        }
开发者ID:Emudofus,项目名称:Aldos,代码行数:76,代码来源:CharacterCharacteristicsInformations.cs


注:本文中的System.Utils.WriteDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。