Add DMv3 stubs, add reflection warning
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user