xyginext  0.2.0
Second generation of xygine game creation framework
Public Attributes | List of all members
xy::ResourceLoader Struct Reference

Struct responsible for loading resources. More...

#include <ResourceHandler.hpp>

Public Attributes

std::function< std::any(const std::string &)> loader
 
std::function< std::any()> fallback
 

Detailed Description

Struct responsible for loading resources.

Contains a method to load from a path, and a fallback if the resource isn't found