viotecs 1.1.0
Loading...
Searching...
No Matches
viotecs::Resource Class Reference

Resource type. More...

#include <resource.hpp>

Detailed Description

Resource type.

This type is used to identify resources in the game world. Resources are pieces of global data that can be accessed by any System.

Example creating a resource:

bool enabled;
WireframeResource(bool e) : enabled(e) {}
};
Resource type.
Definition resource.hpp:34
constexpr TypeId type_id
Definition world.hpp:57

Example registering a resource:

World::add_resource<WireframeResource>(false);

Definition at line 33 of file resource.hpp.


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