Add UUID.hpp
This commit is contained in:
@@ -6,20 +6,20 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Base/UUID.hpp"
|
||||
#include <yaml-cpp/yaml.h>
|
||||
#include <libstud/uuid.hxx>
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
template<>
|
||||
struct convert<stud::uuid>
|
||||
struct convert<OpenVulkano::UUID>
|
||||
{
|
||||
static Node encode(const stud::uuid& uuid)
|
||||
static Node encode(const OpenVulkano::UUID& uuid)
|
||||
{
|
||||
return Node(uuid.string());
|
||||
}
|
||||
|
||||
static bool decode(const Node& node, stud::uuid& uuid)
|
||||
static bool decode(const Node& node, OpenVulkano::UUID& uuid)
|
||||
{
|
||||
if (node.IsScalar())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user