Code
245/// Helper function to read in an array of T data that has a string'ized type ID before each entry246template<typename TData>247void ReadHashedDataArray(FDataStream& kStream, TData* paArray, int iArraySize)248{249 uint uiNumEntries;250251 kStream >> uiNumEntries;252253 for(uint iI = 0; iI < uiNumEntries; iI++)254 {255 bool bValid;256 int iType = ReadHashed(kStream, &bValid);257 if(iType != -1)258 {259 TData tValue;260 kStream >> tValue;261 if((int)iType < iArraySize)262 paArray[iType] = tValue;263 }264 else if(!bValid)265 {266 TData tValue;267 kStream >> tValue;268 }269 }270}