mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
publish more prc stuff
This commit is contained in:
parent
255b1ffffa
commit
d156c4a1d5
@ -42,7 +42,7 @@ private:
|
||||
public:
|
||||
INLINE bool operator < (const ConfigDeclaration &other) const;
|
||||
|
||||
public:
|
||||
PUBLISHED:
|
||||
INLINE ConfigPage *get_page() const;
|
||||
INLINE ConfigVariableCore *get_variable() const;
|
||||
|
||||
|
@ -337,6 +337,20 @@ get_declaration(int n) const {
|
||||
return _declarations[n];
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ConfigPage::modify_declaration
|
||||
// Access: Published
|
||||
// Description: Returns a modifiable pointer to the nth declaration
|
||||
// on the page. Any modifications will appear in the
|
||||
// output, if the page is written out with
|
||||
// ConfigPage::write().
|
||||
////////////////////////////////////////////////////////////////////
|
||||
ConfigDeclaration *ConfigPage::
|
||||
modify_declaration(int n) {
|
||||
nassertr(n >= 0 && n < (int)_declarations.size(), (ConfigDeclaration *)NULL);
|
||||
return _declarations[n];
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ConfigPage::get_variable_name
|
||||
// Access: Published
|
||||
|
@ -65,6 +65,7 @@ PUBLISHED:
|
||||
|
||||
int get_num_declarations() const;
|
||||
const ConfigDeclaration *get_declaration(int n) const;
|
||||
ConfigDeclaration *modify_declaration(int n);
|
||||
string get_variable_name(int n) const;
|
||||
string get_string_value(int n) const;
|
||||
bool is_variable_used(int n) const;
|
||||
|
@ -41,7 +41,7 @@ private:
|
||||
ConfigVariableCore(const ConfigVariableCore &templ, const string &name);
|
||||
~ConfigVariableCore();
|
||||
|
||||
public:
|
||||
PUBLISHED:
|
||||
INLINE const string &get_name() const;
|
||||
INLINE bool is_used() const;
|
||||
|
||||
|
@ -31,6 +31,8 @@ forcetype DConfig
|
||||
forcetype ConfigFlags
|
||||
forcetype ConfigPage
|
||||
forcetype ConfigPageManager
|
||||
forcetype ConfigDeclaration
|
||||
forcetype ConfigVariableCore
|
||||
forcetype ConfigVariable
|
||||
forcetype ConfigVariableBase
|
||||
forcetype ConfigVariableBool
|
||||
|
Loading…
x
Reference in New Issue
Block a user