Flecs v3.2
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::untyped_field Struct Reference

Unsafe wrapper class around a field. More...

#include <field.hpp>

Public Member Functions

 untyped_field (void *array, size_t size, size_t count, bool is_shared=false)
 
void * operator[] (size_t index) const
 Return element in component array.
 

Protected Attributes

void * m_data
 
size_t m_size
 
size_t m_count
 
bool m_is_shared
 

Detailed Description

Unsafe wrapper class around a field.

This class can be used when a system does not know the type of a field at compile time.

Definition at line 26 of file field.hpp.


The documentation for this struct was generated from the following file: