本文整理汇总了C#中CWrapped.Wrapped.writeInt方法的典型用法代码示例。如果您正苦于以下问题:C# Wrapped.writeInt方法的具体用法?C# Wrapped.writeInt怎么用?C# Wrapped.writeInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CWrapped.Wrapped
的用法示例。
在下文中一共展示了Wrapped.writeInt方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
public void Write(Wrapped wSock) {
wSock.writeVarInt(0x21);
wSock.writeInt(ChunkX);
wSock.writeInt(ChunkZ);
wSock.writeBool(GroundUpcontinuous);
wSock.writeShort((short)Primarybitmap);
wSock.writeShort((short)Addbitmap);
wSock.writeInt(Compressedsize);
wSock.Send(Compresseddata);
wSock.Purge();
}
示例2: WriteObjectMetadata
public static void WriteObjectMetadata(Wrapped wSock, ObjectMetadata Data) {
wSock.writeInt(Data.ObjectID);
if (Data.ObjectID != 0) {
wSock.writeShort(Data.SpeedX);
wSock.writeShort(Data.SpeedY);
wSock.writeShort(Data.SpeedZ);
}
}
示例3: WriteRecord
public static void WriteRecord(Wrapped wSock, Record Data) {
int RecordData = Data.Metadata & 0xF | (Data.BlockID & 0xFFF) << 4 | (Data.Y & 0xFF) << 16 | (Data.Z & 0xF) << 24 | (Data.X & 0xF) << 28;
wSock.writeInt(RecordData);
}