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

◆ MovedInCargo()

void Container::MovedInCargo ( EntityAI item)
inlineprotected

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

147 {
148 InventoryLocation il = new InventoryLocation;
149 item.GetInventory().GetCurrentInventoryLocation( il );
150
151 int x = il.GetCol();
152 #ifdef PLATFORM_CONSOLE
153 int y = il.GetRow() - 1;
154 #else
155 int y = il.GetRow();
156 #endif
157 if( m_ShowedItemPositions.Contains( item ) )
158 {
159 ref Param3<ref Icon, int, int> data = m_ShowedItemPositions.Get( item );
160 if( data.param1 )
161 {
162 if( data.param2 != x || data.param3 != y )
163 {
164 data.param2 = x;
165 data.param3 = y;
166 #ifdef PLATFORM_CONSOLE
167 data.param1.SetCargoPos( data.param3 );
168 #endif
169 #ifdef PLATFORM_WINDOWS
170 data.param1.SetPosX( data.param2 );
171 data.param1.SetPosY( data.param3 );
172 #endif
173 }
174 data.param1.UpdateInterval();
175 }
176 }
178 }
Icon x
Icon y
void UpdateSelection()
Определения CargoContainer.c:466
ref map< EntityAI, ref Param3< ref Icon, int, int > > m_ShowedItemPositions
Определения CargoContainer.c:12
void SetCargoPos(int x)
Определения Icon.c:1084
proto native int GetCol()
returns column of cargo if current type is Cargo / ProxyCargo
proto native int GetRow()
returns row of cargo if current type is Cargo / ProxyCargo

Перекрестные ссылки InventoryLocation::GetCol(), InventoryLocation::GetRow(), m_ShowedItemPositions, UpdateSelection(), x и y.

Используется в SetEntity() и ~CargoContainer().