LeviLamina
Loading...
Searching...
No Matches
IntellisenseHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/ItemInstance.h"
7
8// auto generated forward declare list
9// clang-format off
11class CommandOrigin;
12class CommandRegistry;
14// clang-format on
15
17public:
18 // IntellisenseHandler inner types declare
19 // clang-format off
21 // clang-format on
22
23 // IntellisenseHandler inner types define
24 struct AutoCompleteMessage {
25 public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 32, ::std::string> text;
29 ::ll::TypedStorage<8, 128, ::ItemInstance> itemInstance;
30 // NOLINTEND
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mIntellisenseMessages;
37 ::ll::TypedStorage<1, 1, bool> mIsDevConsole;
38 ::ll::TypedStorage<8, 32, ::std::string> mLastTabCompleteMessage;
39 ::ll::TypedStorage<4, 4, int> mLastTabCompleteIndex;
40 ::ll::TypedStorage<1, 1, bool> mInitTabComplete;
41 ::ll::TypedStorage<1, 1, bool> mNeedsLayoutUpdate;
42 ::ll::TypedStorage<4, 4, int> mAutoCompleteGridSize;
43 ::ll::TypedStorage<8, 24, ::std::vector<::IntellisenseHandler::AutoCompleteMessage>> mAutoCompleteMessages;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI ::std::unique_ptr<::AutoCompleteInformation> _getAutoCompleteOptions(
50 ::CommandOrigin const& origin,
51 ::std::string const& _cmdLine,
52 uint cursorPositionUnsafe,
53 ::CommandRegistry& registry,
54 bool isPlayerMention
55 ) const;
56
57 MCAPI ::std::unique_ptr<::CommandOrigin>
58 _getCommandOrigin(::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel) const;
59
60 MCAPI void _updateAutoCompleteMessages(
61 ::AutoCompleteInformation const& autocompleteInfo,
62 ::CommandOrigin const& origin,
63 ::CommandRegistry const& registry,
64 bool isCheatsEnabled,
65 bool isCommand
66 );
67
68 MCAPI int getAutoCompleteItemId(int index);
69
70 MCAPI ::std::string getAutoCompleteText(int index);
71
72 MCAPI void handleClickComplete(
73 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
74 ::std::string& currentMessage,
75 int clickedIndex
76 );
77
78 MCAPI void handleTabComplete(
79 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
80 ::std::string& currentMessage,
81 int index
82 );
83
84 MCAPI void handleTabComplete(
85 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
86 ::CommandOrigin const& origin,
87 ::std::string& currentMessage,
88 int index,
89 bool isSlashRequired
90 );
91
92 MCAPI void updateIntellisense(
93 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
94 ::std::string const& currentMessage
95 );
96
97 MCAPI ~IntellisenseHandler();
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103 MCAPI void $dtor();
104 // NOLINTEND
105};
Definition ClientInstanceScreenModel.h:5
Definition CommandOrigin.h:32
Definition CommandRegistry.h:51
Definition IntellisenseHandler.h:5
Definition AutoCompleteInformation.h:10
Definition IntellisenseHandler.h:13