<syntaxhighlight lang="python"> namespace Core {
/// <summary>
/// A platform-neutral 128-bit universal identifier. It is essentially guaranteed to never
/// generate the same ID twice.
/// </summary>
class cUID
{
public:
typedef unsigned long long int uint64;
/// <summary>
/// Create a default UID. In order to create a UID that has a valid unique identifier you
/// must call Generate().
/// </summary>
cUID() : mHighBits( 0 ), mLowBits( 0 ) { }
/// <summary>
/// Set the value of the UID from two long integer values. It is up to the caller to ensure that
/// the resulting UID is unique.
/// </summary>
void SetValue( uint64 highBits, uint64 lowBits ) { mHighBits = highBits; mLowBits = lowBits; }
/// <summary>Get the low 64 bits of the UID.</summary>
uint64 LowBits() const { return mLowBits; }
/// <summary>Get the high 64 bits of the UID.</summary>
uint64 HighBits() const { return mHighBits; }
/// <summary>Returns true if the ID is valid.</summary>
bool Valid() const { return ( mHighBits != 0 && mLowBits != 0 ); }
/// <summary>Generate a new UID value.</summary>
static cUID Generate();