mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
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
41 lines
785 B
C++
41 lines
785 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
|
|
{
|
|
/// <summary>
|
|
/// Provides common functionality for efficiently formatting outgoing network packets.
|
|
/// </summary>
|
|
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_
|