diff options
| author | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
| commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
| tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /core/os/main_loop.h | |
| parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
| download | godot-5dbf180.tar.gz godot-5dbf180.tar.zst godot-5dbf180.zip | |
A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
Diffstat (limited to 'core/os/main_loop.h')
| -rw-r--r-- | core/os/main_loop.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/os/main_loop.h b/core/os/main_loop.h index 456a6be4d..a33aeb976 100644 --- a/core/os/main_loop.h +++ b/core/os/main_loop.h @@ -37,15 +37,15 @@ */ class MainLoop : public Object { - GDCLASS( MainLoop, Object ); + GDCLASS(MainLoop, Object); OBJ_CATEGORY("Main Loop"); Ref<Script> init_script; + protected: static void _bind_methods(); public: - enum { NOTIFICATION_WM_MOUSE_ENTER = 2, NOTIFICATION_WM_MOUSE_EXIT = 3, @@ -58,22 +58,20 @@ public: NOTIFICATION_TRANSLATION_CHANGED = 10, }; - virtual void input_event( const InputEvent& p_event ); - virtual void input_text( const String& p_text ); + virtual void input_event(const InputEvent &p_event); + virtual void input_text(const String &p_text); virtual void init(); virtual bool iteration(float p_time); virtual bool idle(float p_time); virtual void finish(); - virtual void drop_files(const Vector<String>& p_files,int p_from_screen=0); + virtual void drop_files(const Vector<String> &p_files, int p_from_screen = 0); - void set_init_script(const Ref<Script>& p_init_script); + void set_init_script(const Ref<Script> &p_init_script); MainLoop(); virtual ~MainLoop(); - - }; #endif |
