added get data function to inline and finished basic entity (still needs testing though
This commit is contained in:
parent
c078ce907f
commit
6085d22df4
4 changed files with 71 additions and 11 deletions
|
|
@ -89,7 +89,7 @@ void *ARC_EntitySystem_GetComponentData(ARC_EntitySystem *entitySystem, ARC_Enti
|
|||
/**
|
||||
* @brief
|
||||
*/
|
||||
ARC_Array ARC_EntitySystem_QueryComponentsData(ARC_EntitySystem *entitySystem, uint32_t components);
|
||||
ARC_Array ARC_EntitySystem_QueryComponentsData(ARC_EntitySystem *entitySystem, ARC_Array components);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "arc/std/array.h"
|
||||
#include "arc/std/vector.h"
|
||||
#include <stdint.h>
|
||||
|
||||
|
|
@ -102,6 +103,17 @@ uint32_t ARC_VectorInline_GetSize(ARC_VectorInline *vectorInline);
|
|||
*/
|
||||
void *ARC_VectorInline_Get(ARC_VectorInline *vectorInline, uint32_t index);
|
||||
|
||||
/**
|
||||
* @brief gets the data from the vector as an ARC_Array
|
||||
*
|
||||
* @note this function will does not copy the data it returns, so changes will affect the contents of the vector inline
|
||||
*
|
||||
* @param[in] vectorInline ARC_VectorInline to get data from
|
||||
*
|
||||
* @return an ARC_Array that holds the current contents of the vector inline
|
||||
*/
|
||||
ARC_Array ARC_VectorInline_GetData(ARC_VectorInline *vectorInline);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue