2 #ifndef UGDK_SCRIPT_VIRTUALTYPE_H_
3 #define UGDK_SCRIPT_VIRTUALTYPE_H_
17 VirtualType() : types_(10, (struct swig_type_info*)nullptr) {}
25 if (!types_[
id]) types_[id] = info;
30 typedef std::vector<struct swig_type_info*> TypeFromLang;
50 static VirtualType type_;
55 VirtualType TypeRegistry<T>::type_;
62 static void RegisterType(T* tp) {
~VirtualType()
Definition: type.h:18
Definition: animation.h:11
struct swig_type_info * FromLang(LangID id) const
Definition: type.h:20
void RegisterFromLang(struct swig_type_info *info, LangID id)
Definition: type.h:24
size_t LangID
Type used for script languages' IDs.
Definition: defs.h:26
VirtualType()
Definition: type.h:17
static VirtualType & type()
Definition: type.h:42
T * GetNull()
Definition: type.h:67