2024-02-20 06:35:53 +00:00
|
|
|
|
|
|
|
#ifndef MT_ENTITY_H
|
|
|
|
#define MT_ENTITY_H
|
|
|
|
|
2024-03-03 19:28:59 +00:00
|
|
|
#include <stdint.h>
|
2024-02-20 06:35:53 +00:00
|
|
|
|
|
|
|
typedef struct MtEntity MtEntity;
|
|
|
|
|
|
|
|
/// @brief: An MtEntity is a frontend descriptor which stands in
|
|
|
|
/// the place of internal data without the need to reference
|
|
|
|
/// actual internal data.
|
|
|
|
struct MtEntity
|
|
|
|
{
|
|
|
|
/// @brief: The context which this MtEntity belongs to. This is
|
|
|
|
/// also the context which is referenced each time a function
|
|
|
|
/// uses the entity and needs to find its shadow.
|
|
|
|
void *context;
|
|
|
|
|
|
|
|
/// @brief: The identifier of the background structure "shadow".
|
|
|
|
/// This is used for resolving this entity to its actual data.
|
2024-03-03 19:28:59 +00:00
|
|
|
uint32_t shadow_id;
|
2024-02-20 06:35:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MT_ENTITY_H
|