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.
32 lines
541 B
32 lines
541 B
/* |
|
* Copyright (C) 2022 Riyyi |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <string> |
|
#include <utility> // std::move |
|
|
|
#include "ruc/json/json.h" |
|
|
|
namespace Inferno { |
|
|
|
class LuaScript; |
|
|
|
struct LuaScriptComponent { |
|
LuaScript* instance { nullptr }; |
|
std::string path; |
|
|
|
// Dont allow manually setting instance during construction |
|
LuaScriptComponent() {} |
|
LuaScriptComponent(const std::string& path) |
|
: path(std::move(path)) |
|
{ |
|
} |
|
}; |
|
|
|
void fromJson(const ruc::Json& json, LuaScriptComponent& value); |
|
|
|
} // namespace Inferno
|
|
|