Skip to content
Snippets Groups Projects
Behavior.hpp 542 B
Newer Older
  • Learn to ignore specific revisions
  • BATON Theau's avatar
    BATON Theau committed
    #pragma once
    
    #include "StatsAlterator.hpp"
    
    namespace megu::game {
        class Behavior {
            public:
                enum Type : uint32_t {
                    SOLID  = 1,
                    DAMAGE = 2,
                };
    
                Behavior() = delete;
                Behavior(const kernel::Prop &, uint32_t);
    
                uint32_t get(uint32_t) const;
                void set(uint32_t, uint32_t);
    
    
                uint32_t operator&(const uint32_t &) const;
    
            private:
                uint32_t _type;
                StatsAlterator _stats;
        };
    }