21 lines
598 B
C++
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
|
|
}
|