Loading...
Searching...
No Matches
LoaderFunctions.h
Go to the documentation of this file.
1//
2// Created by Dave Smith on 10/3/25.
3//
4
5#ifndef LOADERFUNCTIONS_H
6#define LOADERFUNCTIONS_H
11#include <string>
12namespace ml
13{
14 template <typename Resource>
15 bool fileLoader(Resource& r, const std::string& path) {return r.loadFromFile(path);}
16
17 template <typename Resource>
18 bool fileOpener(Resource& r, const std::string& path){return r.openFromFile(path);}
19
20 template <typename Resource>
21 bool returnTrue(Resource& r, const std::string& path){return true;}
22}
23#endif //LOADERFUNCTION_H
Definition Component.h:18
bool fileLoader(Resource &r, const std::string &path)
bool returnTrue(Resource &r, const std::string &path)
bool fileOpener(Resource &r, const std::string &path)