You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
478 B
30 lines
478 B
/* |
|
* Copyright (C) 2022 Riyyi |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <string> // std::string |
|
#include <utility> // std::move |
|
|
|
#include "ruc/json/json.h" |
|
|
|
namespace Inferno { |
|
|
|
struct TagComponent { |
|
std::string tag; |
|
|
|
TagComponent() = default; |
|
TagComponent(const std::string& tag) |
|
: tag(std::move(tag)) |
|
{ |
|
} |
|
|
|
operator const std::string&() const { return tag; } |
|
}; |
|
|
|
void fromJson(const ruc::Json& json, TagComponent& value); |
|
|
|
} // namespace Inferno
|
|
|