52 _options.push_back(option);
60 return _options.size();
68 nassertr(n >= 0 && n < (
int)_options.size(),
nullptr);
void add_option(XFileTemplate *option)
Adds a new type to the list of allowable types of child nodes for an instance of this template.
XFileTemplate * get_option(int n) const
Returns the nth template on the options list.
void set_open(bool open)
Sets whether the template is considered "open" or not.
bool is_standard() const
Returns true if this particular template is one of the "standard" templates defined by standardTempla...
int get_num_options() const
Returns the number of templates on the options list.
A template definition in the X file.
bool get_open() const
Returns whether the template is considered "open" or not.