From 738d2abe7b4d6088412e56b89f4e26aab1a8bdba Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 1 Aug 2023 18:23:07 +0200 Subject: [PATCH] add avatar invalidate tag --- solanaceae/contact/components.hpp | 3 +++ solanaceae/contact/components_id.inl | 1 + 2 files changed, 4 insertions(+) diff --git a/solanaceae/contact/components.hpp b/solanaceae/contact/components.hpp index 5828f55..f55d803 100644 --- a/solanaceae/contact/components.hpp +++ b/solanaceae/contact/components.hpp @@ -45,6 +45,9 @@ namespace Contact::Components { // (display)alias + // tag to signify a avatar change, and the texture needs to be reloaded + struct TagAvatarInvalidate {}; + struct AvatarMemory { // RGBA std::vector data; diff --git a/solanaceae/contact/components_id.inl b/solanaceae/contact/components_id.inl index 32f9e58..c9eea7b 100644 --- a/solanaceae/contact/components_id.inl +++ b/solanaceae/contact/components_id.inl @@ -22,6 +22,7 @@ DEFINE_COMP_ID(Contact::Components::Parent) DEFINE_COMP_ID(Contact::Components::ParentOf) DEFINE_COMP_ID(Contact::Components::ContactModel) DEFINE_COMP_ID(Contact::Components::Name) +DEFINE_COMP_ID(Contact::Components::TagAvatarInvalidate) DEFINE_COMP_ID(Contact::Components::AvatarMemory) DEFINE_COMP_ID(Contact::Components::AvatarFile) DEFINE_COMP_ID(Contact::Components::ConnectionState)