MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / write

Method write

Engine/source/persistence/taml/json/tamlJSONWriter.cpp:60–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58//-----------------------------------------------------------------------------
59
60bool TamlJSONWriter::write( FileStream& stream, const TamlWriteNode* pTamlWriteNode )
61{
62 // Debug Profiling.
63 PROFILE_SCOPE(TamlJSONWriter_Write);
64
65 // Create document.
66 rapidjson::Document document;
67 document.SetObject();
68
69 // Compile the root type.
70 rapidjson::Value rootValue(rapidjson::kObjectType);
71 compileType( document, &rootValue, NULL, pTamlWriteNode, -1 );
72
73 // Write document to stream.
74 rapidjson::PrettyWriter<FileStream> jsonStreamWriter( stream );
75 document.Accept( jsonStreamWriter );
76
77 return true;
78}
79
80//-----------------------------------------------------------------------------
81

Callers

nothing calls this directly

Calls 1

AcceptMethod · 0.80

Tested by

no test coverage detected