add avatar obj comp
This commit is contained in:
parent
99d9633ff1
commit
a5508ff6f3
@ -2,10 +2,15 @@
|
||||
|
||||
#include "./fwd.hpp"
|
||||
|
||||
#include <entt/entity/entity.hpp>
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// fwd
|
||||
enum class Object : uint32_t;
|
||||
|
||||
namespace Contact::Components {
|
||||
|
||||
struct TagSelfWeak {};
|
||||
@ -65,6 +70,11 @@ namespace Contact::Components {
|
||||
// tag to signal an avatar change, and the texture needs to be reloaded
|
||||
struct TagAvatarInvalidate {};
|
||||
|
||||
struct AvatarObj {
|
||||
//ObjectHandle obj;
|
||||
Object obj {entt::null};
|
||||
};
|
||||
|
||||
struct AvatarMemory {
|
||||
// RGBA single-frame
|
||||
std::vector<uint8_t> data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user