| 75 | } |
| 76 | |
| 77 | void FPCGExGUIDDetails::GetGUID(const int32 Index, const FPCGPoint& InPoint, FGuid& OutGUID) const |
| 78 | { |
| 79 | const uint32 SeededBase = bUseSeed ? InPoint.Seed : 0; |
| 80 | OutGUID = FGuid( |
| 81 | GridHash, |
| 82 | bUseIndex ? Index : -1, |
| 83 | UniqueKeyReader->IsConstant() ? HashCombine(SeededBase, static_cast<uint32>(UniqueKeyReader->Read(Index))) : SeededBase, |
| 84 | bUsePosition ? PCGEx::GH3(InPoint.Transform.GetLocation() + PositionHashOffset, AdjustedPositionHashCollision) : 0); |
| 85 | } |
| 86 | |
| 87 | PCGEX_INITIALIZE_ELEMENT(WriteGUID) |
| 88 |
no test coverage detected