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.
21 lines
397 B
21 lines
397 B
/* |
|
* Copyright (C) 2023 Riyyi |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#include "ruc/json/json.h" |
|
|
|
#include "inferno/component/luascriptcomponent.h" |
|
|
|
namespace Inferno { |
|
|
|
void fromJson(const ruc::Json& json, LuaScriptComponent& value) |
|
{ |
|
VERIFY(json.type() == ruc::Json::Type::Object); |
|
|
|
VERIFY(json.exists("path"), "path not found"); |
|
json.at("path").getTo(value.path); |
|
} |
|
|
|
} // namespace Inferno
|
|
|