2
0
Daniele Bartolini 12 жил өмнө
parent
commit
eb48e59583

+ 6 - 0
engine/core/json/JSONParser.cpp

@@ -224,6 +224,12 @@ JSONParser& JSONParser::operator[](uint32_t i)
 	return *this;
 }
 
+//--------------------------------------------------------------------------
+JSONParser& JSONParser::index(uint32_t i)
+{
+	return this->operator[](i);
+}
+
 //--------------------------------------------------------------------------
 JSONParser& JSONParser::key(const char* k)
 {

+ 3 - 0
engine/core/json/JSONParser.h

@@ -65,6 +65,9 @@ public:
 	/// Returns the @a i -th item of the current array.
 	JSONParser&			operator[](uint32_t i);
 
+	/// @copydoc JSONParser::operator[]
+	JSONParser&			index(uint32_t i);
+
 	/// Returns the element corresponding to key @a k of the
 	/// current object.
 	/// @note