#pragma once

#include "source2sdk/source2gen/source2gen.hpp"
#include <cstddef>
#include <cstdint>
#include "source2sdk/server/CLogicalEntity.hpp"
#include "source2sdk/server/CMotorController.hpp"
namespace source2sdk
{
    namespace server
    {
        struct CBaseEntity;
    };
};

// /////////////////////////////////////////////////////////////
// Module: server
// Created using source2gen - github.com/neverlosecc/source2gen
// /////////////////////////////////////////////////////////////

namespace source2sdk
{
    namespace server
    {
        // Registered alignment: 0x8
        // Alignment: 0x8
        // Standard-layout class: false
        // Size: 0x548
        // Has VTable
        #pragma pack(push, 1)
        class CPhysMotor : public source2sdk::server::CLogicalEntity
        {
        public:
            CUtlSymbolLarge m_nameAttach; // 0x4e0            
            CUtlSymbolLarge m_nameAnchor; // 0x4e8            
            // m_hAttachedObject has a template type with potentially unknown template parameters. You can try uncommenting the field below.
            // CHandle<source2sdk::server::CBaseEntity> m_hAttachedObject;
            char m_hAttachedObject[0x4]; // 0x4f0            
            // m_hAnchorObject has a template type with potentially unknown template parameters. You can try uncommenting the field below.
            // CHandle<source2sdk::server::CBaseEntity> m_hAnchorObject;
            char m_hAnchorObject[0x4]; // 0x4f4            
            float m_spinUp; // 0x4f8            
            float m_spinDown; // 0x4fc            
            float m_flMotorFriction; // 0x500            
            float m_additionalAcceleration; // 0x504            
            float m_angularAcceleration; // 0x508            
            float m_flTorqueScale; // 0x50c            
            float m_flTargetSpeed; // 0x510            
            float m_flSpeedWhenSpinUpOrSpinDownStarted; // 0x514            
            uint8_t _pad0518[0x10]; // 0x518
            source2sdk::server::CMotorController m_motor; // 0x528            
            
            // Datamap fields:
            // void m_pFixedWorldBody; // 0x518
            // void m_pMotorJoint; // 0x520
            // float InputSetTargetSpeed; // 0x0
            // float InputSetFriction; // 0x0
            // void InputTurnOn; // 0x0
            // void InputTurnOff; // 0x0
        };
        #pragma pack(pop)
        
        // Cannot assert offsets of fields in CPhysMotor because it is not a standard-layout class
        
        static_assert(sizeof(source2sdk::server::CPhysMotor) == 0x548);
    };
};
