Browse Source

missing functions

David Rose 21 years ago
parent
commit
18bda86df4
2 changed files with 23 additions and 0 deletions
  1. 22 0
      pandatool/src/xfile/xFileNode.I
  2. 1 0
      pandatool/src/xfile/xFileNode.h

+ 22 - 0
pandatool/src/xfile/xFileNode.I

@@ -15,3 +15,25 @@
 // [email protected] .
 //
 ////////////////////////////////////////////////////////////////////
+
+
+////////////////////////////////////////////////////////////////////
+//     Function: XFileNode::get_num_children
+//       Access: Public
+//  Description: 
+////////////////////////////////////////////////////////////////////
+INLINE int XFileNode::
+get_num_children() const {
+  return _children.size();
+}
+
+////////////////////////////////////////////////////////////////////
+//     Function: XFileNode::get_child
+//       Access: Public
+//  Description: 
+////////////////////////////////////////////////////////////////////
+INLINE XFileNode *XFileNode::
+get_child(int n) const {
+  nassertr(n >= 0 && n < (int)_children.size(), NULL);
+  return _children[n];
+}

+ 1 - 0
pandatool/src/xfile/xFileNode.h

@@ -23,6 +23,7 @@
 #include "typedReferenceCount.h"
 #include "pointerTo.h"
 #include "namable.h"
+#include "notify.h"
 #include "pvector.h"
 #include "pmap.h"