mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Core: Cleanup headers in core/config
- `MainLoop` now forward-declared in `OS`
This commit is contained in:
parent
d413181b8a
commit
5935a32e32
34 changed files with 41 additions and 6 deletions
|
|
@ -30,9 +30,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "core/input/input_event.h"
|
||||
#include "core/object/gdvirtual.gen.inc"
|
||||
#include "core/object/ref_counted.h"
|
||||
#include "core/object/object.h"
|
||||
|
||||
class MainLoop : public Object {
|
||||
GDCLASS(MainLoop, Object);
|
||||
|
|
|
|||
|
|
@ -40,6 +40,8 @@
|
|||
|
||||
#include <cstdlib>
|
||||
|
||||
class MainLoop;
|
||||
|
||||
class OS {
|
||||
static OS *singleton;
|
||||
static uint64_t target_ticks;
|
||||
|
|
@ -223,6 +225,7 @@ public:
|
|||
|
||||
void ensure_user_data_dir();
|
||||
|
||||
// NOTE: MainLoop is forward-declared in OS and should be included to use this.
|
||||
virtual MainLoop *get_main_loop() const = 0;
|
||||
|
||||
virtual void yield();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue