Vector3 ReadS16Vec3( NetReader reader ) { return new Vector3( reader.ReadInt16() / 256f, reader.ReadInt16() / 256f, reader.ReadInt16() / 256f ); }
internal void ReadMetadataPacket( NetReader reader ) { collisonSize = ReadS16Vec3( reader ); pickingBounds.Min = ReadS16Vec3( reader ); pickingBounds.Max = ReadS16Vec3( reader ); nameYOffset = reader.ReadInt16() / 256f; eyeY = reader.ReadInt16() / 256f; bobbing = reader.ReadUInt8() != 0; }
RotateData ReadRotateData( NetReader reader ) { RotateData data = default(RotateData); data.Origin = reader.ReadInt16() / 256f; data.Type = reader.ReadUInt8(); data.VarA = reader.ReadInt16() / 512f; data.VarB = reader.ReadInt16() / 512f; return data; }