Browse Source

add set_trust_level

David Rose 18 years ago
parent
commit
5c61a77d90
2 changed files with 14 additions and 0 deletions
  1. 13 0
      dtool/src/prc/configPage.I
  2. 1 0
      dtool/src/prc/configPage.h

+ 13 - 0
dtool/src/prc/configPage.I

@@ -111,6 +111,19 @@ get_trust_level() const {
   return _trust_level;
   return _trust_level;
 }
 }
 
 
+////////////////////////////////////////////////////////////////////
+//     Function: ConfigPage::set_trust_level
+//       Access: Published
+//  Description: Explicitly sets the trust level on this particular
+//               page.  Note that any subsequent changes to the page,
+//               or to any variable declarations on it, will reset the
+//               trust level to zero.
+////////////////////////////////////////////////////////////////////
+INLINE void ConfigPage::
+set_trust_level(int trust_level) {
+  _trust_level = trust_level;
+}
+
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: ConfigPage::get_signature
 //     Function: ConfigPage::get_signature
 //       Access: Published
 //       Access: Published

+ 1 - 0
dtool/src/prc/configPage.h

@@ -53,6 +53,7 @@ PUBLISHED:
 
 
   INLINE int get_page_seq() const;
   INLINE int get_page_seq() const;
   INLINE int get_trust_level() const;
   INLINE int get_trust_level() const;
+  INLINE void set_trust_level(int trust_level);
   INLINE const string &get_signature() const;
   INLINE const string &get_signature() const;
 
 
   void clear();
   void clear();