update_controls & update_interaction moved to separate module

This commit is contained in:
MihailRis 2022-06-29 15:36:45 +03:00 • committed by GitHub
parent 191b88192b
commit f962b73c98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 214 additions and 188 deletions

13
src/player_control.h Normal file
View file

@ -0,0 +1,13 @@
#ifndef PLAYER_CONTROL_H_
#define PLAYER_CONTROL_H_
class PhysicsSolver;
class Chunks;
class Player;
class Lighting;
class LineBatch;
void update_controls(PhysicsSolver* physics, Chunks* chunks, Player* player, float delta);
void update_interaction(Chunks* chunks, PhysicsSolver* physics, Player* player, Lighting* lighting, LineBatch* lineBatch);
#endif /* PLAYER_CONTROL_H_ */