mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
feat: solid entity material support & minor refactor
This commit is contained in:
parent
01d46b2690
commit
dbc7cd56bd
6 changed files with 91 additions and 63 deletions
|
|
@ -18,6 +18,8 @@ struct Hitbox;
|
|||
struct CameraSettings;
|
||||
struct EngineSettings;
|
||||
|
||||
using FootstepCallback = std::function<void(const Hitbox&)>;
|
||||
|
||||
class CameraControl {
|
||||
Player& player;
|
||||
std::shared_ptr<Camera> camera;
|
||||
|
|
@ -57,6 +59,7 @@ class PlayerController {
|
|||
CameraControl camControl;
|
||||
BlocksController& blocksController;
|
||||
float interactionTimer = 0.0f;
|
||||
FootstepCallback footstepCallback;
|
||||
|
||||
void updateKeyboard(const Input& inputEvents);
|
||||
void resetKeyboard();
|
||||
|
|
@ -89,5 +92,8 @@ public:
|
|||
void postUpdate(
|
||||
float delta, int windowHeight, const Input* inputEvents, bool pause
|
||||
);
|
||||
|
||||
Player& getPlayer();
|
||||
|
||||
void setFootstepCallback(FootstepCallback&& callback);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue