Remove I3DEngine CryCommon Interface (#567)

Delete:

- I3DEngine
- Missions
- Time of day
- GameEffectsSystem Gem
- ImageProcessing Gem
- SVOGI Gem
- Various other things that don't do anything now that the legacy renderer has been removed.
This commit is contained in:
bosnichd
2021-05-05 09:07:28 -06:00
committed by GitHub
parent 24df655d8b
commit d7b796fd73
222 changed files with 124 additions and 26474 deletions
+2 -49
View File
@@ -32,6 +32,8 @@
#include "HitContext.h"
#include "Objects/SelectionGroup.h"
#include <IEntityRenderState.h>
#include <IStatObj.h>
//////////////////////////////////////////////////////////////////////////
//! Undo Entity Link
@@ -1926,55 +1928,6 @@ void CEntityObject::OnContextMenu(QMenu* pMenu)
CBaseObject::OnContextMenu(pMenu);
}
//////////////////////////////////////////////////////////////////////////
IOpticsElementBasePtr CEntityObject::GetOpticsElement()
{
CDLight* pLight = GetLightProperty();
if (pLight == NULL)
{
return NULL;
}
return pLight->GetLensOpticsElement();
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::SetOpticsName(const QString& opticsFullName)
{
if (opticsFullName.isEmpty())
{
CDLight* pLight = GetLightProperty();
if (pLight)
{
pLight->SetLensOpticsElement(NULL);
}
}
}
//////////////////////////////////////////////////////////////////////////
CDLight* CEntityObject::GetLightProperty() const
{
const PodArray<ILightSource*>* pLightEntities = GetIEditor()->Get3DEngine()->GetLightEntities();
if (pLightEntities == NULL)
{
return NULL;
}
for (int i = 0, iLightSize(pLightEntities->Count()); i < iLightSize; ++i)
{
ILightSource* pLightSource = pLightEntities->GetAt(i);
if (pLightSource == NULL)
{
continue;
}
CDLight& lightProperty = pLightSource->GetLightProperties();
if (GetName() != lightProperty.m_sName)
{
continue;
}
return &lightProperty;
}
return NULL;
}
//////////////////////////////////////////////////////////////////////////
void CEntityObject::PreInitLightProperty()
{