Brenta Engine 1.0
Loading...
Searching...
No Matches
Brenta::ECS::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 WireframeResource : Resource {
bool enabled;
WireframeResource(bool e) : enabled(e) {}
};
Resource type.
Definition resource.hpp:57

Example registering a resource:

World::AddResource<WireframeResource>(WireframeResource(false));

Definition at line 56 of file resource.hpp.


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