25 lines
443 B
C++
Executable File
25 lines
443 B
C++
Executable File
// $Revision$
|
|
// $Date$
|
|
// $Id$
|
|
|
|
#pragma once
|
|
|
|
#include <DamageStatusEnum32.h>
|
|
#include <EntityTypeStruct.h>
|
|
#include <QtCore/QMetaType>
|
|
#include <QtCore/QHash>
|
|
|
|
Q_DECLARE_METATYPE(rpr2::DamageStatusEnum32::ET)
|
|
|
|
|
|
namespace rpr2
|
|
{
|
|
inline uint qHash(const rpr2::EntityTypeStruct &ets)
|
|
{
|
|
// da es genau 64 belegte Bits sind, geht es so am einfachsten
|
|
const quint64 *val = reinterpret_cast<const quint64 *>(&ets);
|
|
return ::qHash(*val);
|
|
}
|
|
}
|
|
|