mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-06 05:37:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "util/PhysicalProperties.h"
|
||||
|
||||
namespace RBX {
|
||||
|
||||
size_t PhysicalProperties::hashCode() const
|
||||
{
|
||||
size_t seed = 0;
|
||||
boost::hash_combine(seed, customEnabled);
|
||||
boost::hash_combine(seed, density);
|
||||
boost::hash_combine(seed, friction);
|
||||
boost::hash_combine(seed, frictionWeight);
|
||||
boost::hash_combine(seed, elasticity);
|
||||
boost::hash_combine(seed, elasticityWeight);
|
||||
return seed;
|
||||
}
|
||||
|
||||
size_t hash_value(const PhysicalProperties& properties)
|
||||
{
|
||||
return properties.hashCode();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user