viotecs 1.0
Loading...
Searching...
No Matches
viotecs::resource Struct 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:

struct wireframe_resource : resource {
bool enabled;
wireframe_resource(bool e) : enabled(e) {}
};
Resource type.
Definition resource.hpp:54

Example registering a resource:

world::add_resource<wireframe_resource>(wireframe_resource(false));

Definition at line 53 of file resource.hpp.


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