mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
42 lines
751 B
C++
42 lines
751 B
C++
#ifndef WORLD_LEVEL_H_
|
|
#define WORLD_LEVEL_H_
|
|
|
|
#include "../typedefs.h"
|
|
#include "../settings.h"
|
|
|
|
class World;
|
|
class Player;
|
|
class Chunks;
|
|
class LevelEvents;
|
|
class Lighting;
|
|
class PhysicsSolver;
|
|
class ChunksController;
|
|
class ChunksStorage;
|
|
class PlayerController;
|
|
|
|
class Level {
|
|
public:
|
|
World* world;
|
|
Player* player;
|
|
Chunks* chunks;
|
|
ChunksStorage* chunksStorage;
|
|
PhysicsSolver* physics;
|
|
Lighting* lighting;
|
|
ChunksController* chunksController;
|
|
PlayerController* playerController;
|
|
LevelEvents* events;
|
|
|
|
Level(World* world,
|
|
Player* player,
|
|
EngineSettings& settings);
|
|
~Level();
|
|
|
|
void updatePlayer(float delta,
|
|
bool input,
|
|
bool pause,
|
|
bool interactions);
|
|
|
|
void update();
|
|
};
|
|
|
|
#endif /* WORLD_LEVEL_H_ */
|