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

◆ GeneratePersistentID()

static int RemotelyActivatedItemBehaviour::GeneratePersistentID ( )
inlinestaticprotected

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

82 {
83 int randomID = Math.RandomInt(0, int.MAX);
84 if (m_RemoteReceivers.Contains(randomID))
85 {
86 //it's very unlikely to have a collision here, but lets handle it anyway
87 return GeneratePersistentID();
88 }
89 else
90 return randomID;
91 }
const int MAX
Определения EnConvert.c:27
static ref map< int, EntityAI > m_RemoteReceivers

Перекрестные ссылки GeneratePersistentID(), m_RemoteReceivers, MAX и Math::RandomInt().

Используется в GeneratePersistentID() и InventoryItem::PairWithDevice().