implement remaining logic
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
70f1fe7de0
commit
9ad3d62b14
41 changed files with 1393 additions and 408 deletions
21
src/values/entity_property_value.cpp
Normal file
21
src/values/entity_property_value.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include "values/entity_property_value.hpp"
|
||||
|
||||
#include <errors.hpp>
|
||||
|
||||
IkarusEntity const * ikarus_entity_property_value_get_entity(IkarusEntityPropertyValue const * value, IkarusErrorData * error_out) {
|
||||
IKARUS_FAIL_IF_NULL(value, nullptr);
|
||||
|
||||
return value->entity;
|
||||
}
|
||||
|
||||
IkarusProperty const * ikarus_entity_property_value_get_property(IkarusEntityPropertyValue const * value, IkarusErrorData * error_out) {
|
||||
IKARUS_FAIL_IF_NULL(value, nullptr);
|
||||
|
||||
return value->property;
|
||||
}
|
||||
|
||||
IkarusValue const * ikarus_entity_property_value_get_value(IkarusEntityPropertyValue const * value, IkarusErrorData * error_out) {
|
||||
IKARUS_FAIL_IF_NULL(value, nullptr);
|
||||
|
||||
return value->value;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue