本文整理汇总了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;
}
示例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;
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}