Add DMv3 stubs, add reflection warning

This commit is contained in:
Vulpovile
2023-11-04 20:15:07 -07:00
parent 53427dd385
commit e8eef916b0
23 changed files with 982 additions and 1491 deletions

View File

@@ -5,14 +5,15 @@ using namespace B3D;
Instance::Instance(std::string className)
{
this->parent = NULL;
this->parentDataModel = NULL;
this->dataTable = new Reflection::ReflectionDataTable(this, className);
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);
this->name = Reflection::ReflectionProperty<std::string>("Name", "Level", Reflection::TYPE_STRING, dataTable);
canDelete = true;
}
Instance::Instance(void)
{
Instance::Instance("BaseInstance");
Instance::Instance("");
}
Instance::~Instance(void)
@@ -91,6 +92,7 @@ void Instance::setParent(Instance* newParent)
if(newParent != NULL)
{
newParent->addChild(this);
parentDataModel = newParent->getParentDataModel();
}
}
@@ -99,6 +101,11 @@ Instance* Instance::getParent()
return parent;
}
DataModelInstance* Instance::getParentDataModel()
{
return parentDataModel;
}
void Instance::addChild(Instance* newChild)
{
children.push_back(newChild);