1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Net/PacketReader.h
Halofreak1990 1bf933432b List class now works.
TextureCollection is broken because it can somehow not resolve Texture as template argument for the List it uses.
Added missing BinaryWriter and TextWriter classes to System::IO namespace
Modified BinaryReader
Added PacketReader and PacketWriter classes to XFX::Net namespace
2011-03-10 22:55:43 +00:00

41 lines
764 B
C++

#ifndef _XFX_NET_PACKETREADER_
#define _XFX_NET_PACKETREADER_
#include <System/IO/BinaryReader.h>
using namespace System::IO;
namespace XFX
{
struct Matrix;
struct Quaternion;
struct Vector2;
struct Vector3;
struct Vector4;
namespace Net
{
/// <summary>
/// Provides common functionality for efficiently reading incoming network packets.
/// </summary>
class PacketReader : public BinaryReader
{
public:
int Length();
int Position();
void Position(int newValue);
PacketReader();
PacketReader(int capacity);
Matrix ReadMatrix();
Quaternion ReadQuaternion();
Vector2 ReadVector2();
Vector3 ReadVector3();
Vector4 ReadVEctor4();
};
}
}
#endif //_XFX_NET_PACKETREADER_