mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Began transforming of current API to represent XNA 4.0, which is cleaner. Dictionary<TKey, TValue> should now work (sort of-- need to implement resizing and enumerating) Currently hunting down GraphicsDevice initialization Up next: (hopefully successful) rendering of primitives
39 lines
751 B
C++
39 lines
751 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
|
|
{
|
|
// Provides common functionality for efficiently reading incoming network packets.
|
|
class PacketReader : public BinaryReader, public virtual Object
|
|
{
|
|
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_
|