LeviLamina
Loading...
Searching...
No Matches
RemappingLayoutRawIndex.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Publisher.h"
7
8// auto generated forward declare list
9// clang-format off
10class Keymapping;
11struct DuplicateKey;
12namespace Bedrock::PubSub::ThreadModel { struct SingleThreaded; }
13// clang-format on
14
16public:
17 // RemappingLayoutRawIndex inner types define
18 using RefreshKeymappingPublisher =
19 ::Bedrock::PubSub::Publisher<void(::std::optional<uint64>), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>;
20
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::std::vector<::Keymapping>&> mKeymappings;
25 ::ll::TypedStorage<8, 8, ::std::vector<::Keymapping>&> mDefaultMappings;
26 ::ll::TypedStorage<
27 8,
28 16,
29 ::std::shared_ptr<
30 ::Bedrock::PubSub::
31 Publisher<void(::std::optional<uint64>), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>>>
32 mRefreshKeymappingsPublisher;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 RemappingLayoutRawIndex& operator=(RemappingLayoutRawIndex const&);
38 RemappingLayoutRawIndex(RemappingLayoutRawIndex const&);
39 RemappingLayoutRawIndex();
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI void defaultKeyAtIndex(uint64 index);
45
46 MCAPI ::std::vector<::DuplicateKey> generateIndicesOfDuplicates() const;
47
48 MCAPI ::Keymapping const& getKeymappingByIndex(uint64 index) const;
49
50 MCAPI uint64 getNumKeymappings() const;
51
52 MCAPI bool isKeymappingDefault(uint64 index) const;
53
54 MCAPI void unassignDuplicateKeys(uint64 index);
55
56 MCAPI void unassignKeyAtIndex(uint64 index);
57 // NOLINTEND
58};
Definition Keymapping.h:5
Definition RemappingLayoutRawIndex.h:5
Definition DuplicateKey.h:5