refactor message serializer to allow access to eg contacts

This commit is contained in:
2024-02-16 16:29:37 +01:00
parent 73d1d65142
commit 1bfd04680e
5 changed files with 185 additions and 6 deletions

View File

@@ -4,6 +4,8 @@
#include "./fragment_store_i.hpp"
#include "./fragment_store.hpp"
#include "./message_serializer.hpp"
#include <entt/entity/registry.hpp>
#include <entt/container/dense_map.hpp>
@@ -36,10 +38,6 @@ namespace Fragment::Components {
};
} // Fragment::Components
struct MessageSerializerCallbacks : public SerializerCallbacks<Message3> {
// TODO: add contact and message reg, so entities can be looked up and be converted to fragment uids OR persistent ids
};
// handles fragments for messages
// on new message: assign fuid
// on new and update: mark as fragment dirty