godot_voxel/server/voxel_server_gd.h

31 lines
635 B
C
Raw Normal View History

#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