add avatar invalidate tag

This commit is contained in:
Green Sky 2023-08-01 18:23:07 +02:00
parent 86426781d0
commit 738d2abe7b
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,9 @@ namespace Contact::Components {
// (display)alias // (display)alias
// tag to signify a avatar change, and the texture needs to be reloaded
struct TagAvatarInvalidate {};
struct AvatarMemory { struct AvatarMemory {
// RGBA // RGBA
std::vector<uint8_t> data; std::vector<uint8_t> data;

View File

@ -22,6 +22,7 @@ DEFINE_COMP_ID(Contact::Components::Parent)
DEFINE_COMP_ID(Contact::Components::ParentOf) DEFINE_COMP_ID(Contact::Components::ParentOf)
DEFINE_COMP_ID(Contact::Components::ContactModel) DEFINE_COMP_ID(Contact::Components::ContactModel)
DEFINE_COMP_ID(Contact::Components::Name) DEFINE_COMP_ID(Contact::Components::Name)
DEFINE_COMP_ID(Contact::Components::TagAvatarInvalidate)
DEFINE_COMP_ID(Contact::Components::AvatarMemory) DEFINE_COMP_ID(Contact::Components::AvatarMemory)
DEFINE_COMP_ID(Contact::Components::AvatarFile) DEFINE_COMP_ID(Contact::Components::AvatarFile)
DEFINE_COMP_ID(Contact::Components::ConnectionState) DEFINE_COMP_ID(Contact::Components::ConnectionState)