1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Net/PacketWriter.h
Halofreak1990 40c4811c04 Got everything to compile again.
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
2012-09-28 20:36:02 +00:00

39 lines
749 B
C++

#ifndef _XFX_NET_PACKETWRITER_
#define _XFX_NET_PACKETWRITER_
#include <System/IO/BinaryWriter.h>
using namespace System::IO;
namespace XFX
{
struct Matrix;
struct Quaternion;
struct Vector2;
struct Vector3;
struct Vector4;
namespace Net
{
// Provides common functionality for efficiently formatting outgoing network packets.
class PacketWriter : public BinaryWriter
{
public:
int Length();
int Position();
void Position(int newValue);
PacketWriter();
PacketWriter(int capacity);
void Write(Matrix value);
void Write(Quaternion value);
void Write(Vector2 value);
void Write(Vector3 value);
void Write(Vector4 value);
};
}
}
#endif //_XFX_NET_PACKETWRITER_