26 lines
582 B
C++
26 lines
582 B
C++
#pragma once
|
|
|
|
#include <uf/config.h>
|
|
#include <uf/ext/ext.h>
|
|
#include <uf/engine/entity/entity.h>
|
|
#include <uf/engine/scene/scene.h>
|
|
#include <uf/utils/math/vector.h>
|
|
|
|
namespace ext {
|
|
namespace PlayerModelBehavior {
|
|
UF_BEHAVIOR_DEFINE_TYPE;
|
|
void attach( uf::Object& );
|
|
void initialize( uf::Object& );
|
|
void tick( uf::Object& );
|
|
void render( uf::Object& );
|
|
void destroy( uf::Object& );
|
|
|
|
struct Metadata {
|
|
bool hide = true;
|
|
pod::Vector3f scale = {1,1,1};
|
|
|
|
std::function<void()> serialize;
|
|
std::function<void()> deserialize;
|
|
};
|
|
}
|
|
} |