libikarus/src/objects/entity.cpp
Folling 484a505f2c
make object fields public and fixup compile errors
Signed-off-by: Folling <mail@folling.io>
2025-04-15 12:08:03 +02:00

21 lines
598 B
C++

#include "entity.hpp"
#include <cppbase/strings.hpp>
#include <persistence/function_context.hpp>
#include <persistence/project.hpp>
IkarusEntity * ikarus_entity_create(struct IkarusProject * project, char const * name) {
LOG_INFO("creating new entity");
LOG_DEBUG("project={}; name={}", project->get_path().c_str(), name);
auto * ctx = project->get_function_context();
if (cppbase::is_empty_or_blank(name)) {
ctx->set_error("name is empty or blank", true, IkarusErrorInfo_Source_Client, IkarusErrorInfo_Type_Client_Input);
return nullptr;
}
// TODO
}