LeviLamina
Loading...
Searching...
No Matches
NetworkEnableDisableListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7
8// auto generated forward declare list
9// clang-format off
10class AppPlatform;
11// clang-format on
12
13class NetworkEnableDisableListener {
14public:
15 // NetworkEnableDisableListener inner types define
16 enum class State : int {
17 Enabled = 0,
18 Disabled = 1,
19 Uninitialized = 2,
20 };
21
22public:
23 // member variables
24 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 NetworkEnableDisableListener& operator=(NetworkEnableDisableListener const&);
32 NetworkEnableDisableListener(NetworkEnableDisableListener const&);
33 NetworkEnableDisableListener();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~NetworkEnableDisableListener();
39
40 virtual void _onDisable() = 0;
41
42 virtual void _onEnable() = 0;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
49
50 MCNAPI void disable();
51
52 MCNAPI bool isDisabled() const;
53
54 MCNAPI bool isEnabled() const;
55
56 MCNAPI void tryEnable();
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCNAPI void* $ctor(::Bedrock::NonOwnerPointer<::AppPlatform> const& appPlatform);
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68 MCNAPI void $dtor();
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition AppPlatform.h:91
Definition NonOwnerPointer.h:9
MCAPI bool isDisabled() const
static MCAPI void ** $vftable()
MCAPI bool isEnabled() const
MCAPI void * $ctor(::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform)
MCAPI NetworkEnableDisableListener(::Bedrock::NonOwnerPointer<::AppPlatform > const &appPlatform)
Definition Alias.h:14