aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/scripts/scriptjson.h
blob: 09926bef322e5b32e5e65c88ab3d36306a5b31d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include "pch.h"
#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);