Too much changes

This commit is contained in:
2025-03-09 04:50:41 +03:00
parent e45d21b621
commit b1fb15fa1f
20 changed files with 255 additions and 44 deletions

View File

@@ -6,7 +6,7 @@ IMPLEMENT_RTTI_BASE( Entity );
Entity::Entity() :
m_position(0.0f), m_rotation(0.0f), m_scale(1.0f),
m_model(nullptr)
m_model(NULL)
{
}
@@ -46,13 +46,13 @@ void TestRTTI()
LogMsg("light classname: %s", light->GetRuntimeClass()->m_pClassName);
LightEntity* lightCasted = DynamicCast< LightEntity, Entity >( entity );
LogMsg("light from entity casted: %s", lightCasted ? "successful" : "failed");
LogMsg("light from entity cast: %s", lightCasted ? "successful" : "failed");
delete entity;
entity = light;
lightCasted = DynamicCast< LightEntity, Entity >( entity );
LogMsg("light from entity(LightEntity) casted: %s", lightCasted ? "successful" : "failed");
LogMsg("light from entity(LightEntity) cast: %s", lightCasted ? "successful" : "failed");
entity = NULL;
delete light;