R-Type
R-Type project
Type.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** gameEngine2
4 ** File description:
5 ** Type
6 */
7 
8 #ifndef TYPE_HPP_
9 #define TYPE_HPP_
10 
11 #include <memory>
12 
13 namespace KapEngine {
14  class Type {
15  public:
16  template<typename T>
17  inline static std::size_t getHashCode() {
18  return std::hash<std::string>()(typeid(T).name());
19  }
20 
21  template<typename T>
22  inline static std::size_t getHashCode(T& obj) {
23  return std::hash<std::string>()(typeid(obj).name());
24  }
25  };
26 }
27 
28 #endif
KapEngine
main namespace
Definition: Component.hpp:17
KapEngine::Type
Definition: Type.hpp:14