mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
add 'player-spawn-radius' generator parameter
This commit is contained in:
parent
4271f537a3
commit
2600dd7ed9
5 changed files with 27 additions and 9 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include "settings.hpp"
|
||||
#include "voxels/voxel.hpp"
|
||||
#include "util/Interpolation.hpp"
|
||||
#include "maths/util.hpp"
|
||||
|
||||
class Chunks;
|
||||
class Camera;
|
||||
|
|
@ -63,6 +64,9 @@ class Player : public Serializable {
|
|||
entityid_t selectedEid = 0;
|
||||
|
||||
glm::vec3 rotation {};
|
||||
util::PseudoRandom random;
|
||||
|
||||
void attemptToChooseSpawnpoint();
|
||||
public:
|
||||
util::VecInterpolation<3, float, true> rotationInterpolation {true};
|
||||
|
||||
|
|
@ -88,8 +92,6 @@ public:
|
|||
void updateSelectedEntity();
|
||||
void postUpdate();
|
||||
|
||||
void attemptToFindSpawnpoint();
|
||||
|
||||
void setChosenSlot(int index);
|
||||
|
||||
int getChosenSlot() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue