generated from Persson-dev/Godot-Xmake
simple dynamic crosshair
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Crosshair.h"
|
||||
#include <godot_cpp/classes/area3d.hpp>
|
||||
|
||||
namespace blitz {
|
||||
@@ -15,16 +16,17 @@ class BoneCollisionShape : public godot::Area3D {
|
||||
~BoneCollisionShape();
|
||||
|
||||
void _ready();
|
||||
void headshot_hit();
|
||||
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_head_damage(int d);
|
||||
int get_head_damage() const;
|
||||
void set_body_damage(int d);
|
||||
int get_body_damage() const;
|
||||
int get_body_damage() const;
|
||||
Crosshair* m_Crosshair;
|
||||
};
|
||||
|
||||
} // namespace blitz
|
||||
Reference in New Issue
Block a user