513 {
514 if(!entity)
515 return;
517
518 if(!client)
519 {
520
521 Param1<string> debug_output = new Param1<string>(entity.GetDebugText());
522 properties.Insert(debug_output);
523 if(!item)
524 return;
525
527 Param1<int> agents_count = new Param1<int>(num_of_agents);
528 properties.InsertAt(agents_count,1);
529 }
530 if(!item)
531 return;
532
533 int number_of_items = 0;
535 properties.Insert(quantity);
536 number_of_items++;
537
539 properties.Insert(liquid_type);
540 number_of_items++;
541
543 properties.Insert(wetness);
544 number_of_items++;
545
547 properties.Insert(temperature);
548 number_of_items++;
549
551 properties.Insert(frozen);
552 number_of_items++;
553
555 properties.Insert(FTProgress);
556 number_of_items++;
557
558 #ifdef DEVELOPER
560 properties.Insert(FTChangeTime);
561 number_of_items++;
562
564 properties.Insert(FTRemainingTime);
565 number_of_items++;
566 #endif
567
569 properties.Insert(OverheatPgs);
570 number_of_items++;
571
574 {
576 properties.Insert(CookingTime);
577 number_of_items++;
578
580 properties.Insert(DecayTime);
581 number_of_items++;
582
584 properties.Insert(DecayDelta);
585 number_of_items++;
586 }
587
589 properties.Insert(energy);
590 number_of_items++;
591
593 if(!client)
594 {
596 }
597 else
598 {
600 }
601 properties.Insert(health);
602 number_of_items++;
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619 if(!client)
620 {
621 Param1<int> item_count = new Param1<int>(number_of_items);
622 properties.InsertAt(item_count,2);
623 }
624 }
int FillWithAgents(ItemBase item, array< ref Param > properties)
Super root of all classes in Enforce script.
override FoodStage GetFoodStage()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.