Procházet zdrojové kódy

Added Children, NumChildren properties to entity.

Mark Sibly před 8 roky
rodič
revize
1507133522
1 změnil soubory, kde provedl 14 přidání a 0 odebrání
  1. 14 0
      modules/mojo3d/graphics/entity.monkey2

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

@@ -115,6 +115,20 @@ Class Entity
 		Invalidate()
 	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.
 	#end
 	Property Visible:Bool()