Mario Kart 64
Loading...
Searching...
No Matches
Registry.h
Go to the documentation of this file.
1// #pragma once
2
3// #include "Course.h"
4// #include "Cup.h"
5// #include <unordered_map>
6// #include "AllActors.h"
7// #include "Actor.h"
8// #include "objects/Object.h"
9
10// class AActor; // <-- Forward delare
11
12// template <class T> class Registry {
13// public:
14// Registry();
15// void Add(std::string name, std::function<T*()>);
16
17// template <typename... Args>
18// void AddArgs(std::string id);
19// T* Get(std::string id);
20// private:
21// std::unordered_map<std::string, std::function<T*()>> ContentVault;
22// std::map<std::string, std::function<T*(Args&&...)>> ArgsVault;
23// };
24
25// void AddCourse(std::string id, Course* course);
26// void AddCup(std::string id, Cup* cup);
27// void AddActor(std::string id, AActor* actor);
28
29// void AddStockContent();
30
31// extern Registry<Course> Courses;
32// extern Registry<Cup> Cups;
33// extern Registry<AActor> Actors;