Просмотр исходного кода

Add simple accessors for the children of a Screen, like the ones that already exist for Scene

mcc 13 лет назад
Родитель
Сommit
855d4bdc6a
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Core/Contents/Include/PolyScreen.h

+ 3 - 0
Core/Contents/Include/PolyScreen.h

@@ -131,6 +131,9 @@ namespace Polycode {
 		*/		
 		ScreenEntity *getRootEntity() { return rootEntity; }
 		
+		int getNumChildren() { return children.size(); }
+		ScreenEntity *getChild(int index) { return children[index]; }
+		
 		/**
 		* If set to false, the screen will not be rendered or updated.
 		*/