summaryrefslogtreecommitdiff
path: root/src/engine/Registry.h
blob: f55818dc34c70f442082f598919e4728c06a555e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// #pragma once

// #include "Course.h"
// #include "Cup.h"
// #include <unordered_map>
// #include "AllActors.h"
// #include "Actor.h"
// #include "objects/Object.h"

// class AActor; // <-- Forward delare

// template <class T> class Registry {
//   public:
//   Registry();
//   void Add(std::string name, std::function<T*()>);
  
//   template <typename... Args>
//   void AddArgs(std::string id);
//   T* Get(std::string id);
// private:
//   std::unordered_map<std::string, std::function<T*()>> ContentVault;
//   std::map<std::string, std::function<T*(Args&&...)>> ArgsVault;
// };

// void AddCourse(std::string id, Course* course);
// void AddCup(std::string id, Cup* cup);
// void AddActor(std::string id, AActor* actor);

// void AddStockContent();

// extern Registry<Course> Courses;
// extern Registry<Cup> Cups;
// extern Registry<AActor> Actors;