aboutsummaryrefslogtreecommitdiff
path: root/primedev/scripts/scriptjson.h
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/scripts/scriptjson.h')
-rw-r--r--primedev/scripts/scriptjson.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/primedev/scripts/scriptjson.h b/primedev/scripts/scriptjson.h
new file mode 100644
index 00000000..b747106b
--- /dev/null
+++ b/primedev/scripts/scriptjson.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "rapidjson/document.h"
+#include "rapidjson/writer.h"
+#include "rapidjson/stringbuffer.h"
+
+template <ScriptContext context> void EncodeJSONTable(
+ SQTable* table,
+ rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<SourceAllocator>>* obj,
+ rapidjson::MemoryPoolAllocator<SourceAllocator>& allocator);
+
+template <ScriptContext context> void
+DecodeJsonTable(HSquirrelVM* sqvm, rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<SourceAllocator>>* obj);