| 800 | } |
| 801 | |
| 802 | EntityType CheckGenericType(TiXmlDocument& doc) { |
| 803 | TiXmlHandle hDoc(&doc); |
| 804 | TiXmlNode* pNode; |
| 805 | |
| 806 | pNode = hDoc.FirstChild("Object").ToNode(); |
| 807 | if (pNode != NULL) return _env_object; |
| 808 | |
| 809 | pNode = hDoc.FirstChild("Actor").ToNode(); |
| 810 | if (pNode != NULL) return _movement_object; |
| 811 | |
| 812 | pNode = hDoc.FirstChild("Sound").ToNode(); |
| 813 | if (pNode != NULL) return _ambient_sound_object; |
| 814 | |
| 815 | pNode = hDoc.FirstChild("item").ToNode(); |
| 816 | if (pNode != NULL) return _item_object; |
| 817 | |
| 818 | pNode = hDoc.FirstChild("DecalObject").ToNode(); |
| 819 | if (pNode != NULL) return _decal_object; |
| 820 | |
| 821 | pNode = hDoc.FirstChild("Hotspot").ToNode(); |
| 822 | if (pNode != NULL) return _hotspot_object; |
| 823 | |
| 824 | return _no_type; |
| 825 | } |
no test coverage detected