Browse Source

Added Children, NumChildren properties to entity.

Mark Sibly 8 years ago
parent
commit
1507133522
1 changed files with 14 additions and 0 deletions
  1. 14 0
      modules/mojo3d/graphics/entity.monkey2

+ 14 - 0
modules/mojo3d/graphics/entity.monkey2

@@ -115,6 +115,20 @@ Class Entity
 		Invalidate()
 		Invalidate()
 	End
 	End
 	
 	
+	#rem monkeydoc Number of child entities.
+	#end
+	Property NumChildren:Int()
+		
+		Return _children.Length
+	End
+	
+	#rem monkeydoc Array of child entities.
+	#end
+	Property Children:Entity[]()
+		
+		Return _children.ToArray()
+	End
+
 	#rem monkeydoc entity visibility flag.
 	#rem monkeydoc entity visibility flag.
 	#end
 	#end
 	Property Visible:Bool()
 	Property Visible:Bool()