forked from Green-Sky/tomato
2abf09ac06
* 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
42 lines
723 B
C++
42 lines
723 B
C++
#pragma once
|
|
|
|
#include <solanaceae/object_store/meta_components_file.hpp>
|
|
|
|
#include <solanaceae/contact/contact_model3.hpp>
|
|
|
|
#include <entt/container/dense_map.hpp>
|
|
|
|
namespace ObjectStore::Components {
|
|
|
|
// until i find a better name
|
|
namespace File {
|
|
|
|
// ephemeral?, not sure saving this to disk makes sense
|
|
// tag remove have all?
|
|
struct RemoteHaveBitset {
|
|
struct Entry {
|
|
bool have_all {false};
|
|
BitSet have;
|
|
};
|
|
entt::dense_map<Contact3, Entry> others;
|
|
};
|
|
|
|
} // File
|
|
|
|
namespace Ephemeral {
|
|
|
|
namespace File {
|
|
|
|
struct TransferStatsSeparated {
|
|
entt::dense_map<Contact3, TransferStats> stats;
|
|
};
|
|
|
|
} // File
|
|
|
|
} // Ephemeral
|
|
|
|
} // ObjectStore::Components
|
|
|
|
#include "./os_comps_id.inl"
|
|
|