implement remaining logic
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
e17e346768
commit
bac85e87c8
41 changed files with 1393 additions and 408 deletions
46
include/ikarus/values/entity_property_value.h
Normal file
46
include/ikarus/values/entity_property_value.h
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
#pragma once
|
||||
|
||||
/// \file entity_property_value.h
|
||||
/// \author Folling <folling@ikarus.world>
|
||||
|
||||
/// \defgroup entity_property_values EntityPropertyValue
|
||||
/// \brief Values in relation to an entity and one of its properties.
|
||||
/// @{
|
||||
|
||||
#include <ikarus/errors.h>
|
||||
#include <ikarus/macros.h>
|
||||
#include <ikarus/values/entity_property_value.h>
|
||||
|
||||
IKARUS_BEGIN_HEADER
|
||||
|
||||
/// \brief Like an \ref value.h "IkarusValue", but in relation to an entity and one of its properties
|
||||
struct IkarusEntityPropertyValue;
|
||||
|
||||
/// \brief Fetches the entity of an entity property value.
|
||||
/// \param value The entity property value.
|
||||
/// \pre \li Must not be null.
|
||||
/// \param error_out \see errors.h
|
||||
/// \return The entity of the entity property value.
|
||||
/// \remark This value is owned by the entity property value and must not be freed directly.
|
||||
struct IkarusEntity const * ikarus_entity_property_value_get_entity(IkarusEntityPropertyValue const * value, IkarusErrorData * error_out);
|
||||
|
||||
/// \brief Fetches the property of an entity property value.
|
||||
/// \param value The entity property value.
|
||||
/// \pre \li Must not be null.
|
||||
/// \param error_out \see errors.h
|
||||
/// \return The property of the entity property value.
|
||||
/// \remark This value is owned by the entity property value and must not be freed directly.
|
||||
struct IkarusProperty const *
|
||||
ikarus_entity_property_value_get_property(IkarusEntityPropertyValue const * value, IkarusErrorData * error_out);
|
||||
|
||||
/// \brief Fetches the value of an entity property value.
|
||||
/// \param value The entity property value.
|
||||
/// \pre \li Must not be null.
|
||||
/// \param error_out \see errors.h
|
||||
/// \return The value of the entity property value.
|
||||
/// \remark This value is owned by the entity property value and must not be freed directly.
|
||||
struct IkarusValue const * ikarus_entity_property_value_get_value(IkarusEntityPropertyValue const * value, IkarusErrorData * error_out);
|
||||
|
||||
IKARUS_END_HEADER
|
||||
|
||||
/// @}
|
||||
|
|
@ -3,9 +3,6 @@
|
|||
/// \file value.h
|
||||
/// \author Folling <folling@ikarus.world>
|
||||
|
||||
#include <ikarus/errors.h>
|
||||
#include <ikarus/macros.h>
|
||||
|
||||
/// \defgroup values Values
|
||||
/// \brief The values of properties.
|
||||
/// \details Each entity has a value for each property it is associated with.
|
||||
|
|
@ -17,6 +14,9 @@
|
|||
/// property's settings. \see PropertyType
|
||||
/// @{
|
||||
|
||||
#include <ikarus/errors.h>
|
||||
#include <ikarus/macros.h>
|
||||
|
||||
IKARUS_BEGIN_HEADER
|
||||
|
||||
/// \brief The common type for all values.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue