397 {
398 int i;
399 int c;
400 int index;
401 int width;
402 int height;
403 int row;
404 int col;
405 InventoryItem item;
406 vector data;
409
410
412 for (i = 0; i < c; i++)
413 {
415 if( item != NULL )
416 {
417 bool remove_item = false;
418
419 if (items.Contains(item) == false)
420 {
421 remove_item = true;
422 }
423 else
424 {
425
426 if ((
m_Items.Get(item) - items.Get(item)).LengthSq() > 0.01)
427 {
428
429 remove_item = true;
430 }
431 }
432
433 if (remove_item)
434 {
436 c--;
437 i--;
438 }
439 }
440 }
441
442
443 for (i = 0; i < items.Count(); i++)
444 {
445 item = items.GetKey(i);
446 data = items.Get(item);
447
448 if (
m_Items.Contains(item) ==
false)
449 {
451 }
452 }
453
454
456
457
458 for (i = 0; i < items.Count(); i++)
459 {
460 item = items.GetKey(i);
461 data = items.Get(item);
463 }
464 }
proto native vector Vector(float x, float y, float z)
Vector constructor from components.