Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

426 B
Raw Blame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
#pragma once

#include "../../core/Types.hpp"
#include "../../core/Reflection.hpp"

namespace esengine::ecs {

ES_COMPONENT()
struct Interactable {
    ES_PROPERTY()
    bool enabled{true};
    ES_PROPERTY()
    bool blockRaycast{true};
    ES_PROPERTY()
    bool raycastTarget{true};
};

}  // namespace esengine::ecs