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
31World* GetWorld(WorldHash worldHash);
33World* GetWorld(WorldId worldId);
34
37
40Dataset Query(Ptr<MemDb::Database> const& db, Util::Array<MemDb::TableId>& tables, Filter filter);
42void ReleaseDatasets();
43
45BlueprintId GetBlueprintId(Util::StringAtom name);
47TemplateId GetTemplateId(Util::StringAtom name);
48
49} // 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 orientation.h:7
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:52
BlueprintId GetBlueprintId(Util::StringAtom name)
Returns a blueprint id by name.
Definition api.cc:125
TemplateId GetTemplateId(Util::StringAtom name)
Returns a template id by name.
Definition api.cc:134
void DestroyFilter(Filter)
Destroy a filter.
Definition filter.cc:22
uint32_t WorldId
Definition entity.h:28
World * GetWorld(WorldHash hash)
returns a world by hash
Definition api.cc:25
void ReleaseDatasets()
Recycles all current datasets allocated memory to be reused.
Definition api.cc:43
Attribute.
Definition attribute.h:26