Nebula
Loading...
Searching...
No Matches
dataset.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
11//------------------------------------------------------------------------------
12#include "memdb/table.h"
13
14namespace Game
15{
16
17//------------------------------------------------------------------------------
22struct Dataset
23{
24 static const uint32_t MAX_COMPONENT_BUFFERS = 64;
25
26 //------------------------------------------------------------------------------
34 struct View
35 {
37 MemDb::TableId tableId = MemDb::TableId::Invalid();
39 uint16_t partitionId = 0xFFFF;
41 uint16_t numInstances = 0;
48 };
49
51 uint32_t numViews = 0;
53 View* views = nullptr;
54};
55
56} // namespace Game
Util::BitField< CAPACITY > modifiedRows
check a bit if the row has been modified, and you need to track it.
Definition table.h:195
Util::BitField< CAPACITY > validRows
bits are set if the row is occupied.
Definition table.h:198
Contains declarations for tables.
Game::EditorState.
Definition orientation.h:7
This represents a "view" into an entity table.
uint16_t numInstances
number of instances in view
Definition dataset.h:41
decltype(MemDb::Table::Partition::validRows) validInstances
which instances are valid in this buffer
Definition dataset.h:45
void * buffers[MAX_COMPONENT_BUFFERS]
component buffers.
Definition dataset.h:43
uint16_t partitionId
partition identifier
Definition dataset.h:39
decltype(MemDb::Table::Partition::modifiedRows) modifiedInstances
which instances are marked as modified in this buffer. Note that you need to manually mark the entity...
Definition dataset.h:47
MemDb::TableId tableId
table identifier
Definition dataset.h:37
A dataset that contains views into category tables.
Definition dataset.h:23
static const uint32_t MAX_COMPONENT_BUFFERS
Definition dataset.h:24
uint32_t numViews
number of views in views array
Definition dataset.h:51
View * views
views into the tables
Definition dataset.h:53
Table identifier.
Definition tableid.h:14