Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 590 Bytes
#pragma once
class TypeInfo
TypeInfo(const char* typeName, const TypeInfo* baseTypeInfo);
bool IsTypeOf(const StringHash& type) const;
bool IsTypeOf(const TypeInfo* typeInfo) const;
template<typename T>
bool IsTypeOf() const { return IsTypeOf(T::GetTypeInfoStatic()); }
const StringHash& GetType() const { return m_Type; }
const std::string& GetTypeName() const { return m_TypeName; }
const TypeInfo* GetBaseTypeInfo() const { return m_pBaseTypeInfo; }
std::string m_TypeName;
StringHash m_Type;
const TypeInfo* m_pBaseTypeInfo = nullptr;
You can’t perform that action at this time.