Nebula
Loading...
Searching...
No Matches
api.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
11//------------------------------------------------------------------------------
12#include "core/ptr.h"
13#include "category.h"
14#include "entity.h"
15#include "memdb/tableid.h"
16#include "filter.h"
17#include "dataset.h"
18
19namespace MemDb
20{
21class Database;
22}
23
24namespace Game
25{
26
27class World;
28#define WORLD_DEFAULT Game::WorldHash{'DWLD'} // 0x44574C44
29
32
35Dataset Query(Ptr<MemDb::Database> const& db, Util::Array<MemDb::TableId>& tables, Filter filter);
37void ReleaseDatasets();
38
40BlueprintId GetBlueprintId(Util::StringAtom name);
42TemplateId GetTemplateId(Util::StringAtom name);
43
44} // namespace Game
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Nebula's dynamic array class.
Definition array.h:60
A StringAtom.
Definition stringatom.h:22
Game::EditorState.
Definition graphicsmanager.h:60
uint32_t Filter
Opaque filter identifier.
Definition filter.h:26
Game::Dataset Query(Ptr< MemDb::Database > const &db, Util::Array< MemDb::TableId > &tids, Filter filter)
Query a subset of tables in a specific db using a specified filter set.
Definition api.cc:36
BlueprintId GetBlueprintId(Util::StringAtom name)
Returns a blueprint id by name.
Definition api.cc:109
TemplateId GetTemplateId(Util::StringAtom name)
Returns a template id by name.
Definition api.cc:118
void DestroyFilter(Filter)
Destroy a filter.
Definition filter.cc:22
void ReleaseDatasets()
Recycles all current datasets allocated memory to be reused.
Definition api.cc:27
Attribute.
Definition attribute.h:26