Skip to content

Commit 8182a64

Browse files
committed
API: Update
1 parent fae44e6 commit 8182a64

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed

NWNXLib/API/API/ALL_CLASSES.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,4 @@ struct SHA1;
329329
struct CNWSync;
330330
struct NWSyncAdvertisementManifest;
331331
struct NWSyncAdvertisement;
332+
struct NWVMachineUtils;

NWNXLib/API/API/CNetLayerPlayerInfo.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ struct CNetLayerPlayerInfo
4242
uint8_t m_nPlatformId;
4343
int32_t m_nBuildVersion;
4444
int32_t m_nPatchRevision;
45+
int32_t m_nPatchPostfix;
4546
CExoString m_sCommitHash;
4647

4748
CNetLayerPlayerInfo();

NWNXLib/API/API/CNetLayerWindow.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ struct CNetLayerWindow
4343
uint16_t m_pOutgoingBuffers[16];
4444
BOOL m_pbTimeOutSet[16];
4545
uint32_t m_pnTimeOut[16];
46-
BOOL m_pbTimeOutDelay[16];
4746
uint16_t m_pIncomingBuffers[16];
4847
BOOL m_pbArrived[16];
4948
CExoArrayList<uint16_t> m_lQueueOutgoingHiFrames;
@@ -54,7 +53,6 @@ struct CNetLayerWindow
5453
uint8_t m_pHighPriorityHoldBuffer[960];
5554
uint32_t m_nLowPriorityHoldBufferSize;
5655
uint32_t m_nHighPriorityHoldBufferSize;
57-
BOOL m_bCrapNetBandwidthNoSend;
5856
uint32_t m_nOutgoingNumBuffers;
5957
uint32_t m_nIncomingNumBuffers;
6058
uint32_t m_nOutgoingPacketsSinceResend;
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#pragma once
2+
#include "nwn_api.hpp"
3+
4+
#include "CGameObject.hpp"
5+
#include "CExoString.hpp"
6+
#include "CScriptLocation.hpp"
7+
#include "JsonEngineStructure.hpp"
8+
#include "CNWSArea.hpp"
9+
#include "CResGFF.hpp"
10+
#include "CResStruct.hpp"
11+
12+
13+
#ifdef NWN_API_PROLOGUE
14+
NWN_API_PROLOGUE(NWVMachineUtils)
15+
#endif
16+
17+
typedef int BOOL;
18+
19+
struct NWVMachineUtils
20+
{
21+
static DataBlockRef SerializeToGff(CGameObject* o, BOOL bSaveObjectState);
22+
static CGameObject* DeserializeFromGff(DataViewRef d, BOOL bLoadObjectState, const CScriptLocation& loc, OBJECT_ID owner, const CExoString& sNewTag, BOOL bObjectCopy = false);
23+
static JsonEngineStructure SerializeToJson(CGameObject* o, BOOL bSaveObjectState);
24+
static CGameObject* DeserializeFromJson(const JsonEngineStructure& ob, BOOL bLoadObjectState, const CScriptLocation& loc, OBJECT_ID owner, const CExoString& sNewTag, BOOL bObjectCopy = false);
25+
static json StructToJson(CResGFF* gff, CResStruct* str, uint32_t nType);
26+
static void JsonToStruct(const json& ob, CResGFF* gff, CResStruct* str);
27+
static JsonEngineStructure SerializeToJson(const CResRef& r, RESTYPE t);
28+
static CNWSArea* SpawnScriptArea(CResGFF* areRoot, CResGFF* gitRoot, const CExoString& newTag = "", const CExoString& newName = "");
29+
30+
#ifdef NWN_CLASS_EXTENSION_NWVMachineUtils
31+
NWN_CLASS_EXTENSION_NWVMachineUtils
32+
#endif
33+
};
34+
35+
36+
#ifdef NWN_API_EPILOGUE
37+
NWN_API_EPILOGUE(NWVMachineUtils)
38+
#endif

0 commit comments

Comments
 (0)