File tree Expand file tree Collapse file tree 7 files changed +25
-0
lines changed Expand file tree Collapse file tree 7 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,6 @@ func _delete_property(name:String) -> void:
2323 super ._delete_property (name )
2424 for child in _children :
2525 child ._delete_property (name )
26+
27+ func _to_string () -> String :
28+ return "<PandoraCategory " + str (_children ) + ">"
Original file line number Diff line number Diff line change @@ -420,3 +420,7 @@ func _create_instance_properties() -> Array[PandoraPropertyInstance]:
420420 var default_value = property .get_default_value ()
421421 property_instances .append (PandoraPropertyInstance .new (property , default_value ))
422422 return property_instances
423+
424+
425+ func _to_string () -> String :
426+ return "<PandoraEntity '" + _name + "'>"
Original file line number Diff line number Diff line change @@ -189,3 +189,7 @@ func _load_properties(data:Array) -> Dictionary:
189189
190190func _get_property_value (name :String ) -> Variant :
191191 return _properties [name ].get_property_value ()
192+
193+
194+ func _to_string () -> String :
195+ return "<PandoraEntityInstance '" + get_entity_name () + "'>"
Original file line number Diff line number Diff line change @@ -71,3 +71,7 @@ func save_data() -> Dictionary:
7171
7272func _get_entity () -> PandoraEntity :
7373 return Pandora .get_entity (proxied_entity_id )
74+
75+
76+ func _to_string () -> String :
77+ return "<PandoraEntityProxy '" + _name + "'>"
Original file line number Diff line number Diff line change @@ -198,3 +198,7 @@ func _type_checks() -> Dictionary:
198198 "reference" : func (variant ): return variant is PandoraEntity ,
199199 "resource" : func (variant ): return variant is Resource
200200 }
201+
202+
203+ func _to_string () -> String :
204+ return "<PandoraProperty '" + get_property_name () + "' (" + get_property_type () + ")>"
Original file line number Diff line number Diff line change @@ -42,3 +42,6 @@ func save_data() -> Dictionary:
4242 "_value" : _value ,
4343 "_property_id" : _property_id
4444 }
45+
46+ func _to_string () -> String :
47+ return "<PandoraPropertyInstance '" + get_property_name () + "'>"
Original file line number Diff line number Diff line change @@ -36,3 +36,6 @@ func save_data() -> Dictionary:
3636 "_entity_id" : _entity_id ,
3737 "_type" :_type
3838 }
39+
40+ func _to_string () -> String :
41+ return "<PandoraReference" + str (get_entity ()) + ">"
You can’t perform that action at this time.
0 commit comments