Skip to content

Commit 5f64707

Browse files
committed
Reformat: Include
1 parent 88a3f6a commit 5f64707

32 files changed

+1143
-1376
lines changed

src/Include/editor/engine.hpp

Lines changed: 46 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -11,71 +11,66 @@
1111

1212
class shared_str;
1313

14-
namespace editor {
15-
14+
namespace editor
15+
{
1616
class property_holder;
1717

18-
class engine {
18+
class engine
19+
{
1920
public:
20-
virtual bool on_message (
21-
HWND hWnd,
22-
UINT uMsg,
23-
WPARAM wParam,
24-
LPARAM lParam,
25-
LRESULT &result
26-
) = 0;
27-
virtual void on_idle () = 0;
28-
virtual void on_resize () = 0;
29-
virtual void pause (bool const &value) = 0;
30-
virtual void capture_input (bool const &value) = 0;
31-
virtual void disconnect () = 0;
32-
// shared_str support
33-
virtual void value (LPCSTR value, shared_str& result) = 0;
34-
virtual LPCSTR value (shared_str const& value) = 0;
35-
36-
// weather editor
21+
virtual bool on_message(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT& result) = 0;
22+
virtual void on_idle() = 0;
23+
virtual void on_resize() = 0;
24+
virtual void pause(bool const& value) = 0;
25+
virtual void capture_input(bool const& value) = 0;
26+
virtual void disconnect() = 0;
27+
// shared_str support
28+
virtual void value(LPCSTR value, shared_str& result) = 0;
29+
virtual LPCSTR value(shared_str const& value) = 0;
30+
31+
// weather editor
3732

3833
public:
39-
// weather
40-
virtual void weather (LPCSTR value) = 0;
41-
virtual LPCSTR weather () = 0;
42-
// weather frame
43-
virtual void current_weather_frame (LPCSTR frame_id) = 0;
44-
virtual LPCSTR current_weather_frame () = 0;
34+
// weather
35+
virtual void weather(LPCSTR value) = 0;
36+
virtual LPCSTR weather() = 0;
37+
// weather frame
38+
virtual void current_weather_frame(LPCSTR frame_id) = 0;
39+
virtual LPCSTR current_weather_frame() = 0;
4540

46-
virtual void track_frame (float const& time) = 0;
47-
virtual float track_frame () = 0;
41+
virtual void track_frame(float const& time) = 0;
42+
virtual float track_frame() = 0;
4843

49-
virtual void track_weather (float const& time) = 0;
50-
virtual float track_weather () = 0;
44+
virtual void track_weather(float const& time) = 0;
45+
virtual float track_weather() = 0;
5146

52-
virtual property_holder* current_frame_property_holder () = 0;
53-
virtual property_holder* blend_frame_property_holder () = 0;
54-
virtual property_holder* target_frame_property_holder () = 0;
47+
virtual property_holder* current_frame_property_holder() = 0;
48+
virtual property_holder* blend_frame_property_holder() = 0;
49+
virtual property_holder* target_frame_property_holder() = 0;
5550

56-
virtual void weather_paused (bool const &value) = 0;
57-
virtual bool weather_paused () = 0;
58-
virtual void weather_time_factor (float const &value) = 0;
59-
virtual float weather_time_factor () = 0;
60-
virtual void save_weathers () = 0;
51+
virtual void weather_paused(bool const& value) = 0;
52+
virtual bool weather_paused() = 0;
53+
virtual void weather_time_factor(float const& value) = 0;
54+
virtual float weather_time_factor() = 0;
55+
virtual void save_weathers() = 0;
6156

62-
virtual bool save_time_frame (char* buffer, u32 const& buffer_size) = 0;
57+
virtual bool save_time_frame(char* buffer, u32 const& buffer_size) = 0;
6358

64-
virtual bool paste_current_time_frame (char const* buffer, u32 const& buffer_size) = 0;
65-
virtual bool paste_target_time_frame (char const* buffer, u32 const& buffer_size) = 0;
59+
virtual bool paste_current_time_frame(char const* buffer, u32 const& buffer_size) = 0;
60+
virtual bool paste_target_time_frame(char const* buffer, u32 const& buffer_size) = 0;
6661

67-
virtual void reload_current_time_frame () = 0;
68-
virtual void reload_target_time_frame () = 0;
62+
virtual void reload_current_time_frame() = 0;
63+
virtual void reload_target_time_frame() = 0;
6964

70-
virtual void reload_current_weather () = 0;
71-
virtual void reload_weathers () = 0;
65+
virtual void reload_current_weather() = 0;
66+
virtual void reload_weathers() = 0;
7267

73-
virtual bool add_time_frame (char const* buffer, u32 const& buffer_size) = 0;
68+
virtual bool add_time_frame(char const* buffer, u32 const& buffer_size) = 0;
7469

75-
virtual char const* weather_current_time () const = 0;
76-
virtual void weather_current_time (char const*) = 0;
77-
}; // class engine
70+
virtual char const* weather_current_time() const = 0;
71+
virtual void weather_current_time(char const*) = 0;
72+
}; // class engine
7873

79-
} // namespace editor
74+
} // namespace editor
8075

81-
#endif // ifndef EDITOR_ENGINE_HPP_INCLUDED
76+
#endif // ifndef EDITOR_ENGINE_HPP_INCLUDED

src/Include/editor/ide.hpp

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,38 @@
99
#ifndef EDITOR_IDE_HPP_INCLUDED
1010
#define EDITOR_IDE_HPP_INCLUDED
1111

12-
namespace editor {
13-
12+
namespace editor
13+
{
1414
class property_holder;
1515
class property_holder_collection;
1616
class property_holder_holder;
1717

18-
class ide {
18+
class ide
19+
{
1920
public:
20-
virtual HWND main_handle () = 0;
21-
virtual HWND view_handle () = 0;
22-
virtual void run () = 0;
23-
virtual void on_load_finished () = 0;
24-
virtual void pause () = 0;
21+
virtual HWND main_handle() = 0;
22+
virtual HWND view_handle() = 0;
23+
virtual void run() = 0;
24+
virtual void on_load_finished() = 0;
25+
virtual void pause() = 0;
2526

2627
public:
27-
virtual property_holder* create_property_holder (LPCSTR display_name, property_holder_collection* collection = 0, property_holder_holder* holder = 0) = 0;
28-
virtual void destroy (property_holder *&property_holder) = 0;
29-
virtual void environment_levels (property_holder *property_holder) = 0;
30-
virtual void environment_weathers (property_holder *property_holder) = 0;
28+
virtual property_holder* create_property_holder(
29+
LPCSTR display_name, property_holder_collection* collection = 0, property_holder_holder* holder = 0) = 0;
30+
virtual void destroy(property_holder*& property_holder) = 0;
31+
virtual void environment_levels(property_holder* property_holder) = 0;
32+
virtual void environment_weathers(property_holder* property_holder) = 0;
3133

3234
public:
33-
typedef fastdelegate::FastDelegate0<LPCSTR const*> weathers_getter_type;
34-
typedef fastdelegate::FastDelegate0<u32> weathers_size_getter_type;
35-
typedef fastdelegate::FastDelegate1<LPCSTR, LPCSTR const*> frames_getter_type;
36-
typedef fastdelegate::FastDelegate1<LPCSTR, u32> frames_size_getter_type;
37-
virtual void weather_editor_setup (
38-
weathers_getter_type const& weathers_getter,
39-
weathers_size_getter_type const& weathers_size_getter,
40-
frames_getter_type const& frames_getter,
41-
frames_size_getter_type const& frames_size_getter
42-
) = 0;
43-
}; // class ide
44-
45-
} // namespace editor
46-
47-
#endif // ifndef EDITOR_IDE_HPP_INCLUDED
35+
typedef fastdelegate::FastDelegate0<LPCSTR const*> weathers_getter_type;
36+
typedef fastdelegate::FastDelegate0<u32> weathers_size_getter_type;
37+
typedef fastdelegate::FastDelegate1<LPCSTR, LPCSTR const*> frames_getter_type;
38+
typedef fastdelegate::FastDelegate1<LPCSTR, u32> frames_size_getter_type;
39+
virtual void weather_editor_setup(weathers_getter_type const& weathers_getter,
40+
weathers_size_getter_type const& weathers_size_getter, frames_getter_type const& frames_getter,
41+
frames_size_getter_type const& frames_size_getter) = 0;
42+
}; // class ide
43+
44+
} // namespace editor
45+
46+
#endif // ifndef EDITOR_IDE_HPP_INCLUDED

src/Include/editor/interfaces.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
#ifndef EDITOR_INTERFACES_HPP_INCLUDED
1010
#define EDITOR_INTERFACES_HPP_INCLUDED
1111

12-
namespace editor {
13-
12+
namespace editor
13+
{
1414
class ide;
1515
class engine;
1616

17-
typedef void (__cdecl *initialize_function_ptr) (ide*&, engine*);
18-
typedef void (__cdecl *finalize_function_ptr) (ide*&);
17+
typedef void(__cdecl* initialize_function_ptr)(ide*&, engine*);
18+
typedef void(__cdecl* finalize_function_ptr)(ide*&);
1919

20-
} // namespace editor
20+
} // namespace editor
2121

22-
#endif // ifndef EDITOR_INTERFACES_HPP_INCLUDED
22+
#endif // ifndef EDITOR_INTERFACES_HPP_INCLUDED

0 commit comments

Comments
 (0)