DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ PlaceEntity()

EntityAI Hologram::PlaceEntity ( EntityAI entity_for_placing)
inlineprotected

См. определение в файле Hologram.c строка 993

994 {
995 //string-based comparison
996 if (entity_for_placing.IsInherited(TentBase) || entity_for_placing.IsBasebuildingKit() )
997 {
998 return entity_for_placing;
999 }
1000
1001 if (m_Projection.IsInherited(GardenPlotPlacing))
1002 {
1003 Class.CastTo(entity_for_placing, GetGame().CreateObjectEx( "GardenPlot", m_Projection.GetPosition(), ECE_OBJECT_SWAP ));
1004 return entity_for_placing;
1005 }
1006
1007 //inheritance comparison
1008 if( !GetProjectionEntity().IsKindOf( m_Parent.GetType() ))
1009 {
1010 Class.CastTo(entity_for_placing, GetGame().CreateObjectEx( m_Projection.GetType(), m_Projection.GetPosition(), ECE_OBJECT_SWAP ));
1011 }
1012
1013 return entity_for_placing;
1014 }
const int ECE_OBJECT_SWAP
Определения CentralEconomy.c:38
EntityAI m_Projection
Определения Hologram.c:22
ItemBase m_Parent
Определения Hologram.c:21
EntityAI GetProjectionEntity()
Определения Hologram.c:1283
proto native CGame GetGame()

Перекрестные ссылки Class::CastTo(), ECE_OBJECT_SWAP, GetGame(), GetProjectionEntity(), m_Parent и m_Projection.