17#include <SDL3/SDL_rect.h>
39 name =
"unnamed GameObject";
73 void Render() {
SYSTEM_LOG <<
" WARNING GameObject::Render call: the visual component should handling the GameObject rendering (sprite, animation etc..) invalid call for GameObject: " <<
name <<
" at (" <<
position.
x <<
", " <<
position.
y <<
")\n"; }
76 std::string
Save()
const;
ComponentTypeID GetComponentTypeID_Static()
World and ECS Manager for Olympe Engine.
void SetSize(float w, float h)
void GetSize(float &w, float &h) const
static bool FactoryRegistered
void SetBoundingbox(const SDL_FRect &box)
virtual ~GameObject() override=default
Vector GetRenderPosition() const
bool Load(const std::string &json)
virtual void OnEvent(const Message &msg) override
virtual ObjectType GetObjectType() const
SDL_FRect GetBoundingBox() const
virtual EntityType GetEntityType() const
Vector GetPosition() const
void SetPosition(Vector &_p)