124 TiXmlNode &node,
const String &tag, std::vector<ValueType> &dest
127 TiXmlNode* child(node.FirstChild());
128 while (child != NULL){
130 child->Type() == TiXmlNode::TINYXML_ELEMENT
131 && child->ValueStr() == tag
135 dest.push_back(in_tmp);
137 child = child->NextSibling();
149 template<
typename KeyType,
typename ValueType>
void ReadMap(
150 TiXmlNode& node,
const String& tag,
const String& key_attribute,
151 std::map<KeyType, ValueType> &dest
154 TiXmlNode* child(node.FirstChild());
155 while (child != NULL){
157 child->Type() == TiXmlNode::TINYXML_ELEMENT
158 && child->ValueStr() == tag
167 child = child->NextSibling();
Handles the serialization of 2D background XML files.
Definition: VGearsBackground2DFileXMLSerializer.h:27
static const String BLENDING_SUBTRACT
Substract-type blending key.
Definition: VGearsBackground2DFileXMLSerializer.h:114
virtual ~Background2DFileXMLSerializer()
Destructor.
Definition: VGearsBackground2DFileXMLSerializer.cpp:32
static const String BLENDING_ALPHA
Alpha-type blending key.
Definition: VGearsBackground2DFileXMLSerializer.h:104
Background2DFileXMLSerializer()
Constructor.
Definition: VGearsBackground2DFileXMLSerializer.cpp:28
virtual void ReadHeader(TiXmlNode *node)
Reads a file header and sets the instance data.
Definition: VGearsBackground2DFileXMLSerializer.cpp:34
void ReadMap(TiXmlNode &node, const String &tag, const String &key_attribute, std::map< KeyType, ValueType > &dest)
Reads a XML node as a map.
Definition: VGearsBackground2DFileXMLSerializer.h:149
virtual void ImportBackground2DFile(Ogre::DataStreamPtr &stream, Background2DFile *dest)
Imports a 2D background XML file.
Definition: VGearsBackground2DFileXMLSerializer.cpp:69
virtual bool ReadAttribute(TiXmlNode &node, const String &attribute, Blending &dest, const Blending &def)
Reads an XMl node attribute as tile blending information.
Definition: VGearsBackground2DFileXMLSerializer.cpp:44
virtual void readObject(TiXmlNode &node, Tile &dest)
Reads an XML node as a tile.
Definition: VGearsBackground2DFileXMLSerializer.cpp:108
void ReadVector(TiXmlNode &node, const String &tag, std::vector< ValueType > &dest)
Reads a XML node as a vector.
Definition: VGearsBackground2DFileXMLSerializer.h:123
static const String BLENDING_ADD
Add-type blending key.
Definition: VGearsBackground2DFileXMLSerializer.h:109
Handles 2D background files.
Definition: VGearsBackground2DFile.h:30
Handles the serialization of XML files.
Definition: VGearsXMLSerializer.h:44
virtual const String * ReadAttribute(TiXmlNode &node, const String &attribute)
Reads an XMl node attribute as a string.
Definition: VGearsXMLSerializer.cpp:30
Definition: FF7NameLookup.h:24
Ogre::String String
Definition: TypeDefine.h:37
Blending
Definition: VGearsTile.h:23
A tile animation.
Definition: VGearsTile.h:62
A tile key frame.
Definition: VGearsTile.h:44
A tile.
Definition: VGearsTile.h:82