mirror of https://github.com/axmolengine/axmol.git
17 lines
430 B
C++
17 lines
430 B
C++
#include "graphbuilderadapter.h"
|
|
|
|
#include "yaml-cpp/parser.h" // IWYU pragma: keep
|
|
|
|
namespace YAML {
|
|
class GraphBuilderInterface;
|
|
|
|
void* BuildGraphOfNextDocument(Parser& parser,
|
|
GraphBuilderInterface& graphBuilder) {
|
|
GraphBuilderAdapter eventHandler(graphBuilder);
|
|
if (parser.HandleNextDocument(eventHandler)) {
|
|
return eventHandler.RootNode();
|
|
}
|
|
return nullptr;
|
|
}
|
|
} // namespace YAML
|