display for property and function types
This commit is contained in:
		
							parent
							
								
									2427494a0f
								
							
						
					
					
						commit
						69273c7e76
					
				|  | @ -347,6 +347,32 @@ impl Display for UObject { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| impl Display for UProperty { | ||||
|     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||||
|         writeln!(f, "UProperty {{")?; | ||||
|         writeln!(f, "name: {:?}", self.name().get_name())?; | ||||
|         writeln!(f, "flags: {:?}", self.property_flags())?; | ||||
|         writeln!(f, "offset: {:?}", self.offset())?; | ||||
|         writeln!(f, "property_size: {:?}", self.property_size())?; | ||||
|         writeln!(f, "element_size: {:?}", self.element_size())?; | ||||
|         writeln!(f, "}}")?; | ||||
| 
 | ||||
|         Ok(()) | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl Display for UFunction { | ||||
|     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||||
|         writeln!(f, "UFunction {{")?; | ||||
|         writeln!(f, "name: {:?}", self.name().get_name())?; | ||||
|         writeln!(f, "flags: {:?}", self.function_flags())?; | ||||
|         writeln!(f, "num_args: {:?}", self.num_params())?; | ||||
|         writeln!(f, "}}")?; | ||||
| 
 | ||||
|         Ok(()) | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl UObject { | ||||
|     #![allow(dead_code)] | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue