LeviLamina
Loading...
Searching...
No Matches
Speed.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Editor::Settings { struct SpeedProps; }
8namespace cereal { struct ReflectionCtx; }
9// clang-format on
10
11namespace Editor::Settings {
12
13class Speed {
14public:
15 // member variables
16 // NOLINTBEGIN
19 // NOLINTEND
20
21public:
22 // prevent constructor by default
23 Speed& operator=(Speed const&);
24 Speed(Speed const&);
25 Speed();
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCNAPI explicit Speed(::std::function<void(::Editor::Settings::SpeedProps const&)> callback);
31
32 MCNAPI float getFlySpeedMultiplier() const;
33
34#ifdef LL_PLAT_C
35 MCNAPI ::Editor::Settings::SpeedProps const& getProperties() const;
36#endif
37
38 MCNAPI void setFlySpeedMultiplier(float newSpeed);
39
40 MCNAPI void updateSettings(::Editor::Settings::SpeedProps const& props, bool notifyUpdate);
41
42 MCNAPI ~Speed();
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCNAPI static void bindType(::cereal::ReflectionCtx& ctx);
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCNAPI void* $ctor(::std::function<void(::Editor::Settings::SpeedProps const&)> callback);
55 // NOLINTEND
56
57public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCNAPI void $dtor();
61 // NOLINTEND
62};
63
64} // namespace Editor::Settings
static MCAPI void bindType(::cereal::ReflectionCtx &ctx)
MCAPI void * $ctor(::std::function< void(::Editor::Settings::SpeedProps const &)> callback)
MCAPI Speed(::std::function< void(::Editor::Settings::SpeedProps const &)> callback)
MCAPI void setFlySpeedMultiplier(float newSpeed)
MCAPI float getFlySpeedMultiplier() const
MCAPI void updateSettings(::Editor::Settings::SpeedProps const &props, bool notifyUpdate)
Definition SpeedProps.h:7
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14