component namespace contains enums and structures that define various attributes and types of game objects. These components are essential for identifying and managing entities within the Entity-Component-System (ECS) architecture.

namespace component {
        enum Object { Background, Player, Weapon, Ennemies, InDestroy };

        enum Type { None, Basic, Milespates, Boss };

        struct Animations {
            ecs::Clock _clock;
            int _width;
            int _height;
            int _x;
            int _y;
            int _rotation;
            Object _object;
            Type _type;
        };
    }; // namespace component

Enums

Object

Type

Struct: Animations

component namespace plays a critical role in identifying and managing entities in the networked environment of the game. The Object and Type enums help the server and client distinguish between different entities, ensuring that their behavior and attributes are handled appropriately.