mirror of
https://github.com/glest/glest-source.git
synced 2025-09-26 15:39:21 +02:00
- added support for multiple animation models for each skill and display a them randomly during game play
This commit is contained in:
@@ -275,6 +275,16 @@ XmlNode *XmlNode::getChild(unsigned int i) const {
|
||||
return children[i];
|
||||
}
|
||||
|
||||
vector<XmlNode *> XmlNode::getChildList(const string &childName) const {
|
||||
vector<XmlNode *> list;
|
||||
for(unsigned int j = 0; j < children.size(); ++j) {
|
||||
if(children[j]->getName() == childName) {
|
||||
list.push_back(children[j]);
|
||||
}
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
XmlNode *XmlNode::getChild(const string &childName, unsigned int i) const{
|
||||
if(i>=children.size()){
|
||||
|
Reference in New Issue
Block a user