refactor file from messages to objects (#27)
* part 1 move files from messages to objects tomato - did not touch chat_gui yet, but image loaders and other stuff * part 1.1 * part 2, mostly chatgui - also ngcft1 behind the scenes * part 3 - port over rest, except for avatar_manager, which is effectivly disabled * fix surface missused causing bmp loader to crash * fixing small issues and small forward refactor
This commit is contained in:
@ -15,13 +15,3 @@ class MessageImageLoader {
|
||||
std::optional<TextureEntry> load(TextureUploaderI& tu, Message3Handle c);
|
||||
};
|
||||
|
||||
// TODO: move to rmm
|
||||
template<>
|
||||
struct std::hash<Message3Handle> {
|
||||
std::size_t operator()(Message3Handle const& m) const noexcept {
|
||||
const std::size_t h1 = reinterpret_cast<std::size_t>(m.registry());
|
||||
const std::size_t h2 = entt::to_integral(m.entity());
|
||||
return (h1 << 3) ^ (h2 * 11400714819323198485llu);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user