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


C# Wrapped.readDouble方法代码示例

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


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

示例1: ReadPropertyData

        public static PropertyData ReadPropertyData(Wrapped wSock) {
            var Data = new PropertyData();

            Data.Key = wSock.readString();
            Data.Value = wSock.readDouble();
            Data.ListLength = wSock.readShort();
            Data.Modifiers = new ModifierData[Data.ListLength];

            for (int x = 0; x < Data.ListLength; x++) 
                Data.Modifiers[x] = ReadModifierData(wSock);
            
            return Data;
        }
开发者ID:reddragon010,项目名称:libMC.NET,代码行数:13,代码来源:WrappedExtension.cs

示例2: ReadModifierData

        public static ModifierData ReadModifierData(Wrapped wSock) {
            var Data = new ModifierData();

            Data.UUID = wSock.readByteArray(16); // -- Because fuck Minecraft.
            Data.Amount = wSock.readDouble();
            Data.Operation = wSock.readByte();

            return Data;
        }
开发者ID:reddragon010,项目名称:libMC.NET,代码行数:9,代码来源:WrappedExtension.cs

示例3: Read

 public void Read(Wrapped wSock) {
     X = wSock.readDouble();
     Y = wSock.readDouble();
     Z = wSock.readDouble();
     Yaw = wSock.readFloat();
     Pitch = wSock.readFloat();
     OnGround = wSock.readBool();
 }
开发者ID:reddragon010,项目名称:libMC.NET,代码行数:8,代码来源:IPacket.cs

示例4: Read

 public void Read(Wrapped wSock) {
     X = wSock.readDouble();
     Y = wSock.readDouble();
     Z = wSock.readDouble();
     Yaw = wSock.readFloat();
     Pitch = wSock.readFloat();
     Flags = wSock.readSByte();
 }
开发者ID:linuxcodefire,项目名称:libMC.NET,代码行数:8,代码来源:Packets.cs

示例5: ReadModifierData

        public static ModifierData ReadModifierData(Wrapped wSock) {
            var data = new ModifierData
            {
                Uuid = new Guid(wSock.readByteArray(16)),
                Amount = wSock.readDouble(),
                Operation = wSock.readByte()
            };

            return data;
        }
开发者ID:linuxcodefire,项目名称:libMC.NET,代码行数:10,代码来源:WrappedExtension.cs

示例6: ReadPropertyData

        public static PropertyData ReadPropertyData(Wrapped wSock) {
            var data = new PropertyData
            {
                Key = wSock.readString(),
                Value = wSock.readDouble()
            };

            var items = wSock.readVarInt();

            data.Modifiers = new ModifierData[items];

            for (var x = 0; x < items; x++) 
                data.Modifiers[x] = ReadModifierData(wSock);
            
            return data;
        }
开发者ID:linuxcodefire,项目名称:libMC.NET,代码行数:16,代码来源:WrappedExtension.cs


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