Banuba SDK
reload_result.hpp
Go to the documentation of this file.
1 /// \file
2 /// \addtogroup EffectPlayer
3 /// @{
4 ///
5 // AUTOGENERATED FILE - DO NOT MODIFY!
6 // This file was generated by Djinni from effect_player.djinni
7 
8 #pragma once
9 
10 #include <bnb/utils/defs.hpp>
11 #include <memory>
12 
13 namespace bnb { namespace interfaces {
14 
15 class effect;
16 
17 /** Returned by `effect_manager.reload_config`. */
18 class BNB_EXPORT reload_result {
19 public:
20  virtual ~reload_result() {}
21 
22  /**
23  * Effect with updated config applied. Depending on
24  * changes it may be the effect already loaded or a new one.
25  */
26  virtual std::shared_ptr<::bnb::interfaces::effect> effect() = 0;
27 
28  /**
29  * In case it was possible to apply the new config on the same
30  * effect, this flag will be `true`.
31  */
32  virtual bool hot_reload() = 0;
33 };
34 
35 } } // namespace bnb::interfaces
36 /// @}
37 
bnb::interfaces::reload_result
Returned by effect_manager.reload_config.
Definition: reload_result.hpp:18
bnb::interfaces::effect
Definition: effect.hpp:21