Loading...
Searching...
No Matches
LoaderFunctions.h
Go to the documentation of this file.
1// Copyright (c) 2025 Dave R. Smith. All rights reserved.
2// Malena Framework — Proprietary Software. See LICENSE for terms.
3
4//
5// Created by Dave Smith on 10/3/25.
6//
7
8#ifndef MALENA_LOADERFUNCTIONS_H
9#define MALENA_LOADERFUNCTIONS_H
15#include <string>
16namespace ml
17{
18 template <typename Resource>
19 bool fileLoader(Resource& r, const std::string& path) {return r.loadFromFile(path);}
20
21 template <typename Resource>
22 bool fileOpener(Resource& r, const std::string& path){return r.openFromFile(path);}
23
24 template <typename Resource>
25 bool returnTrue(Resource& r, const std::string& path){return true;}
26}
27#endif //LOADERFUNCTION_H
Definition Component.h:22
bool fileLoader(Resource &r, const std::string &path)
bool returnTrue(Resource &r, const std::string &path)
bool fileOpener(Resource &r, const std::string &path)