Ejemplo n.º 1
0
 /// <summary>
 /// Converts an Item Proto from format A to format B by using the dynamic definition.
 ///
 /// NOTE: Both src and dst MUST BE initialized before this function should be called.
 /// NOTE: Both src and dst finalize MUST BE called after this function, this function
 /// will not call them.
 /// </summary>
 /// <param name="def">A JSONParser class that stores the definition.</param>
 /// <param name="src">The source format.</param>
 /// <param name="dst">The destination format.</param>
 public static void ProcessItemProto(JSONParser def, IFormat src, IFormat dst)
 {
     for (int i = 0; i < src.Count(); i++)
     {
         ProcessEntry(def, src, dst, def.ItemProto);
         src.Next();
         dst.Next();
     }
 }