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

◆ InsertAll()

void array< Class T >::InsertAll ( notnull array< T > from)
inlineprivate

Inserts all elements from array.

Аргументы
fromarray<T> array from which all elements will be added
arr1.Insert( "Dave" );
arr1.Insert( "Mark" );
arr1.Insert( "John" );
arr2.Insert( "Sarah" );
arr2.Insert( "Cate" );
arr1.InsertAll(arr2);
for ( int i = 0; i < arr1.Count(); i++ )
{
Print( arr1.Get(i) );
}
delete arr2;
delete arr1;
>> "Dave"
>> "Mark"
>> "John"
>> "Sarah"
>> "Cate"
proto void Print(void var)
Prints content of variable to console/log.
array< string > TStringArray
Определения EnScript.c:712

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

450 {
451 int nFrom = from.Count();
452 for ( int i = 0; i < nFrom; ++i )
453 {
454 Insert( from.Get(i) );
455 }
456 }
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto int Insert(T value)

Перекрестные ссылки Insert().