]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/TypeDescription.cpp
added loading callback for type descriptions
[l2e.git] / src / loader / TypeDescription.cpp
index ed88e8ec8eedee6e3d4f83d482ae7008f39e0440..8fd95d7437ef90f3744eea17d0135f4980d1aa64 100644 (file)
@@ -46,6 +46,12 @@ void TypeDescription::Construct(void *data) const {
        }
 }
 
+void TypeDescription::Load(void *data) const {
+       if (loader) {
+               (*loader)(data);
+       }
+}
+
 
 void TypeDescription::AddSupertype(int id, std::ptrdiff_t offset) {
        supertypes[id] = offset;