774adfca3c
The Godot-facing singleton is now a different class in gd:: namespace. Moved the updater to its own file.
31 lines
635 B
C++
31 lines
635 B
C++
#ifndef VOXEL_SERVER_GD_H
|
|
#define VOXEL_SERVER_GD_H
|
|
|
|
#include "core/object/class_db.h"
|
|
#include <core/object/object.h>
|
|
|
|
namespace zylann::voxel::gd {
|
|
|
|
// Godot-facing singleton class.
|
|
// the real class is internal and does not need anything from Object.
|
|
class VoxelServer : public Object {
|
|
GDCLASS(VoxelServer, Object)
|
|
public:
|
|
Dictionary get_stats() const;
|
|
|
|
VoxelServer();
|
|
|
|
static VoxelServer *get_singleton();
|
|
static void create_singleton();
|
|
static void destroy_singleton();
|
|
|
|
private:
|
|
void _on_rendering_server_frame_post_draw();
|
|
|
|
static void _bind_methods();
|
|
};
|
|
|
|
} // namespace zylann::voxel::gd
|
|
|
|
#endif // VOXEL_SERVER_GD_H
|