1111
1212class shared_str ;
1313
14- namespace editor {
15-
14+ namespace editor
15+ {
1616class property_holder ;
1717
18- class engine {
18+ class engine
19+ {
1920public:
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
3833public:
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
0 commit comments