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

◆ PlaceEntity()

EntityAI Hologram::PlaceEntity ( EntityAI entity_for_placing)
inlineprotected

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

1045 {
1046 //string-based comparison
1047 if (entity_for_placing.IsInherited(TentBase) || entity_for_placing.IsBasebuildingKit() )
1048 {
1049 return entity_for_placing;
1050 }
1051
1052 if (m_Projection.IsInherited(GardenPlotPlacing))
1053 {
1054 Class.CastTo(entity_for_placing, g_Game.CreateObjectEx( "GardenPlot", m_Projection.GetPosition(), ECE_OBJECT_SWAP ));
1055 return entity_for_placing;
1056 }
1057
1058 //inheritance comparison
1059 if( !GetProjectionEntity().IsKindOf( m_Parent.GetType() ))
1060 {
1061 Class.CastTo(entity_for_placing, g_Game.CreateObjectEx( m_Projection.GetType(), m_Projection.GetPosition(), ECE_OBJECT_SWAP ));
1062 }
1063
1064 return entity_for_placing;
1065 }
const int ECE_OBJECT_SWAP
Определения CentralEconomy.c:38
DayZGame g_Game
Определения DayZGame.c:3942
EntityAI m_Projection
Определения Hologram.c:22
ItemBase m_Parent
Определения Hologram.c:21
EntityAI GetProjectionEntity()
Определения Hologram.c:1332

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