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

◆ CreateUniqueID()

int CreateUniqueID ( )

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

237 {
238 int uid = Math.RandomInt(1, 2147483647);
239 if (!IsUIDUsed(uid))
240 return uid;
241 else
242 return CreateUniqueID();
243 }
int CreateUniqueID()
Определения StateManager.c:236
bool IsUIDUsed(int uid)
Определения StateManager.c:245
Определения EnMath.c:7
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

Перекрестные ссылки CreateUniqueID(), IsUIDUsed() и Math::RandomInt().

Используется в CreateUniqueID() и SpawnSymptom().