refactor(Minecraft.World): Implement LCEMP changes.

This commit is contained in:
2026-07-13 00:14:53 +03:00
parent 3fce0538c5
commit 21e2add09a
64 changed files with 655 additions and 372 deletions
+10 -8
View File
@@ -2706,14 +2706,16 @@ int Player::getTexture()
}
}
int Player::hash_fnct(const shared_ptr<Player> k)
{
// TODO 4J Stu - Should we just be using the pointers and hashing them?
#ifdef __PS3__
return (int)boost::hash_value( k->name ); // 4J Stu - Names are completely unique?
#else
return (int)std::hash_value( k->name ); // 4J Stu - Names are completely unique?
#endif //__PS3__
int Player::hash_fnct(const shared_ptr<Player> k)
{
// TODO 4J Stu - Should we just be using the pointers and hashing them?
#ifdef __PS3__
return (int)boost::hash_value( k->name ); // 4J Stu - Names are completely unique?
#elif !defined(_MSC_VER) || _MSC_VER >= 1900
return (int)std::hash<wstring>{}( k->name ); // 4J Stu - Names are completely unique?
#else
return (int)stdext::hash_value( k->name ); // 4J Stu - Names are completely unique?
#endif
}
bool Player::eq_test(const shared_ptr<Player> x, const shared_ptr<Player> y)