add avatar obj comp
This commit is contained in:
parent
99d9633ff1
commit
a5508ff6f3
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user