generated from Persson-dev/Godot-Xmake
34 lines
633 B
C++
34 lines
633 B
C++
#pragma once
|
|
|
|
#include "Crosshair.h"
|
|
#include "HitMarkers.h"
|
|
#include <godot_cpp/classes/area3d.hpp>
|
|
|
|
namespace blitz {
|
|
class BoneCollisionShape : public godot::Area3D {
|
|
|
|
GDCLASS(BoneCollisionShape, godot::Area3D)
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
public:
|
|
BoneCollisionShape();
|
|
~BoneCollisionShape();
|
|
|
|
void _ready();
|
|
void headshot_hit();
|
|
void bodyshot_hit();
|
|
|
|
private:
|
|
int m_HeadDamage = 2;
|
|
int m_BodyDamage = 1;
|
|
void set_head_damage(int d);
|
|
int get_head_damage() const;
|
|
void set_body_damage(int d);
|
|
int get_body_damage() const;
|
|
Crosshair* m_Crosshair;
|
|
HitMarkers* m_HitMarkers;
|
|
};
|
|
|
|
} // namespace blitz
|