Nebula
Loading...
Searching...
No Matches
Game::Dataset::View Struct Reference

#include <dataset.h>

Detailed Description

This represents a "view" into an entity table.

This is likely only part of the table and will rarely contain all entities of a table. Entities are split into multiple table views due to memory, performance and threading reasons.

Public Attributes

MemDb::TableId tableId = MemDb::TableId::Invalid()
 table identifier
 
uint16_t partitionId = 0xFFFF
 partition identifier
 
uint16_t numInstances = 0
 number of instances in view
 
void * buffers [MAX_COMPONENT_BUFFERS]
 component buffers.
 
decltype(MemDb::Table::Partition::validRowsvalidInstances
 which instances are valid in this buffer
 
decltype(MemDb::Table::Partition::modifiedRowsmodifiedInstances
 which instances are marked as modified in this buffer. Note that you need to manually mark the entity as modified.
 

Member Data Documentation

◆ buffers

void* Game::Dataset::View::buffers[MAX_COMPONENT_BUFFERS]

component buffers.

Note
Can be NULL if a queried component has no fields

◆ modifiedInstances

decltype(MemDb::Table::Partition::modifiedRows) Game::Dataset::View::modifiedInstances

which instances are marked as modified in this buffer. Note that you need to manually mark the entity as modified.

See also
Game::World::MarkAsModified

◆ numInstances

uint16_t Game::Dataset::View::numInstances = 0

number of instances in view

◆ partitionId

uint16_t Game::Dataset::View::partitionId = 0xFFFF

partition identifier

◆ tableId

MemDb::TableId Game::Dataset::View::tableId = MemDb::TableId::Invalid()

table identifier

◆ validInstances

decltype(MemDb::Table::Partition::validRows) Game::Dataset::View::validInstances

which instances are valid in this buffer


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