add avatar obj comp

This commit is contained in:
Green Sky 2025-05-04 17:10:57 +02:00
parent 99d9633ff1
commit a5508ff6f3
No known key found for this signature in database
GPG Key ID: DBE05085D874AB4A

View File

@ -2,10 +2,15 @@
#include "./fwd.hpp" #include "./fwd.hpp"
#include <entt/entity/entity.hpp>
#include <cstdint> #include <cstdint>
#include <string> #include <string>
#include <vector> #include <vector>
// fwd
enum class Object : uint32_t;
namespace Contact::Components { namespace Contact::Components {
struct TagSelfWeak {}; struct TagSelfWeak {};
@ -65,6 +70,11 @@ namespace Contact::Components {
// tag to signal an avatar change, and the texture needs to be reloaded // tag to signal an avatar change, and the texture needs to be reloaded
struct TagAvatarInvalidate {}; struct TagAvatarInvalidate {};
struct AvatarObj {
//ObjectHandle obj;
Object obj {entt::null};
};
struct AvatarMemory { struct AvatarMemory {
// RGBA single-frame // RGBA single-frame
std::vector<uint8_t> data; std::vector<uint8_t> data;