469 {
470 int i;
471 int c;
472 int index;
473 int width;
474 int height;
475 int row;
476 int col;
477 InventoryItem item;
478 vector data;
481
482
484 for (i = 0; i < c; i++)
485 {
487
488 bool remove_item = false;
489
490 if (items.Contains(item) == false)
491 {
492 remove_item = true;
493 }
494 else
495 {
496
497 if ((
m_Items.Get(item) - items.Get(item)).LengthSq() > 0.01)
498 {
499
500 remove_item = true;
501 }
502 }
503
504 if (remove_item)
505 {
507 c--;
508 i--;
509 }
510 }
511
512
513 for (i = 0; i < items.Count(); i++)
514 {
515 item = items.GetKey(i);
516 data = items.Get(item);
517
518 if (
m_Items.Contains(item) ==
false)
519 {
521 }
522 }
523
524
525 for (i = 0; i < items.Count(); i++)
526 {
527 item = items.GetKey(i);
528 data = items.Get(item);
529
531 }
532 }
proto native vector Vector(float x, float y, float z)
Vector constructor from components.