290 {
293 int categoriesCount = 0;
294 if (holder)
296
298 {
299 categoriesCount++;
300 }
303 {
304 rowCount++;
305 }
306 for (int i = 0; i < rowCount; ++i)
307 {
308 ref AttachmentCategoriesSlotsContainer itemsCont = new AttachmentCategoriesSlotsContainer(this, i);
309 m_Body.Insert(itemsCont);
310 m_OpenedContainers.Insert(itemsCont);
311
312
313 if (i == (rowCount - 1) && categoriesCount %
ITEMS_IN_ROW != 0)
314 itemsCont.GetSlotsContainer().SetColumnCount(categoriesCount %
ITEMS_IN_ROW);
315 else
316 itemsCont.GetSlotsContainer().SetColumnCount(
ITEMS_IN_ROW);
317 }
319 }
proto native GameInventory GetInventory()
TypeAttachmentGroupsDataHolder GetTypeAttachmentGroupInfoHolder()
proto native CargoBase GetCargo()
cargo
int GetValidAttachmnetGroupCount()