mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 00:18:18 +00:00
[Quest API] Add write overloads to lua packet quest api (#1366)
Makes prototyping easier without having to manually track an offset Also add GetWritePosition and SetWritePosition
This commit is contained in:
@@ -31,13 +31,23 @@ public:
|
||||
void SetOpcode(int op);
|
||||
int GetRawOpcode();
|
||||
void SetRawOpcode(int op);
|
||||
int GetWritePosition();
|
||||
void SetWritePosition(int offset);
|
||||
void WriteInt8(int value);
|
||||
void WriteInt8(int offset, int value);
|
||||
void WriteInt16(int value);
|
||||
void WriteInt16(int offset, int value);
|
||||
void WriteInt32(int value);
|
||||
void WriteInt32(int offset, int value);
|
||||
void WriteInt64(int64 value);
|
||||
void WriteInt64(int offset, int64 value);
|
||||
void WriteFloat(float value);
|
||||
void WriteFloat(int offset, float value);
|
||||
void WriteDouble(double value);
|
||||
void WriteDouble(int offset, double value);
|
||||
void WriteString(std::string value);
|
||||
void WriteString(int offset, std::string value);
|
||||
void WriteFixedLengthString(std::string value);
|
||||
void WriteFixedLengthString(int offset, std::string value, int string_length);
|
||||
int ReadInt8(int offset);
|
||||
int ReadInt16(int offset);
|
||||
|
||||
Reference in New Issue
Block a user