Added reflection memory cleanup

This commit is contained in:
Vulpovile
2023-11-04 00:28:41 -07:00
parent 26398f0586
commit c0aab09960
6 changed files with 34 additions and 4 deletions

View File

@@ -6,7 +6,8 @@ Instance::Instance(std::string className)
{
this->parent = NULL;
this->dataTable = new Reflection::ReflectionDataTable(this, className);
this->name = Reflection::ReflectionProperty<std::string>(new std::string("Default Game Instance"), Reflection::TYPE_STRING, dataTable);
this->name = Reflection::ReflectionProperty<std::string>("Name", new std::string("Level"), Reflection::TYPE_STRING, dataTable);
Reflection::ReflectionProperty<std::string>("Name", new std::string("Level"), Reflection::TYPE_STRING, dataTable);
}
Instance::Instance(void)