@@ -677,7 +677,7 @@ impl DemoAnalyzer {
677677 }
678678
679679 fn handle_player_resource ( & mut self , entity : & PacketEntity ) {
680- for prop in & entity. props {
680+ for prop in entity. props ( ) {
681681 if let Some ( ( table_name, prop_name) ) = self . prop_names . get ( & prop. identifier ) {
682682 if let Ok ( player_id) = u32:: from_str ( prop_name. as_str ( ) ) {
683683 let entity_id = EntityId :: from ( player_id) ;
@@ -697,7 +697,7 @@ impl DemoAnalyzer {
697697 fn handle_player_entity ( & mut self , entity : & PacketEntity ) {
698698 let player = self . state . get_or_create_player_entity ( entity. entity_index ) ;
699699
700- for prop in & entity. props {
700+ for prop in entity. props ( ) {
701701 if let Some ( ( table_name, prop_name) ) = self . prop_names . get ( & prop. identifier ) {
702702 match table_name. as_str ( ) {
703703 "DT_BasePlayer" => match prop_name. as_str ( ) {
@@ -739,7 +739,7 @@ impl DemoAnalyzer {
739739 fn handle_unknown_entity ( & mut self , entity : & PacketEntity , class_name : String ) {
740740 let entry = self . state . other_entities . entry ( entity. entity_index ) . or_insert_with ( || OtherEntity { ..Default :: default ( ) } ) ;
741741 entry. entity_content = EntityContent :: Other { class_name } ;
742- for prop in & entity. props {
742+ for prop in entity. props ( ) {
743743 if let Some ( ( _table_name, prop_name) ) = self . prop_names . get ( & prop. identifier ) {
744744 match prop_name. as_str ( ) {
745745 "m_vecOrigin" => entry. position = Vector :: try_from ( & prop. value ) . unwrap_or_default ( ) ,
@@ -757,7 +757,7 @@ impl DemoAnalyzer {
757757 EntityContent :: Sticky ( projectile_properties) => ( 1 , projectile_properties) ,
758758 _ => ( -1 , Default :: default ( ) ) ,
759759 } ;
760- for prop in & entity. props {
760+ for prop in entity. props ( ) {
761761 if let Some ( ( _table_name, prop_name) ) = self . prop_names . get ( & prop. identifier ) {
762762 match prop_name. as_str ( ) {
763763 "m_vecOrigin" => entry. position = Vector :: try_from ( & prop. value ) . unwrap_or_default ( ) ,
@@ -784,7 +784,7 @@ impl DemoAnalyzer {
784784 } else {
785785 Default :: default ( )
786786 } ;
787- for prop in & entity. props {
787+ for prop in entity. props ( ) {
788788 if let Some ( ( _table_name, prop_name) ) = self . prop_names . get ( & prop. identifier ) {
789789 match prop_name. as_str ( ) {
790790 "m_vecOrigin" => entry. position = Vector :: try_from ( & prop. value ) . unwrap_or_default ( ) ,
@@ -812,7 +812,7 @@ impl DemoAnalyzer {
812812 } else {
813813 Default :: default ( )
814814 } ;
815- for prop in & entity. props {
815+ for prop in entity. props ( ) {
816816 if let Some ( ( _table_name, prop_name) ) = self . prop_names . get ( & prop. identifier ) {
817817 match prop_name. as_str ( ) {
818818 "m_vecOrigin" => entry. position = Vector :: try_from ( & prop. value ) . unwrap_or_default ( ) ,
@@ -835,7 +835,7 @@ impl DemoAnalyzer {
835835
836836 fn handle_func_track_train ( & mut self , entity : & PacketEntity ) {
837837 let entry = self . state . other_entities . entry ( entity. entity_index ) . or_insert_with ( || OtherEntity { ..Default :: default ( ) } ) ;
838- for prop in & entity. props {
838+ for prop in entity. props ( ) {
839839 if let Some ( ( _table_name, prop_name) ) = self . prop_names . get ( & prop. identifier ) {
840840 match prop_name. as_str ( ) {
841841 "m_vecOrigin" => entry. position = Vector :: try_from ( & prop. value ) . unwrap_or_default ( ) ,
@@ -853,7 +853,7 @@ impl DemoAnalyzer {
853853 EntityContent :: Weapon { name, id, owner } => ( id, name, owner) ,
854854 _ => ( -1 , Weapon :: Unknown , None ) ,
855855 } ;
856- for prop in & entity. props {
856+ for prop in entity. props ( ) {
857857 if let Some ( ( _table_name, prop_name) ) = self . prop_names . get ( & prop. identifier ) {
858858 match prop_name. as_str ( ) {
859859 "m_vecOrigin" => entry. position = Vector :: try_from ( & prop. value ) . unwrap_or_default ( ) ,
0 commit comments