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;
15// clang-format on
16
18public:
19 // IntellisenseHandler inner types declare
20 // clang-format off
22 // clang-format on
23
24 // IntellisenseHandler inner types define
25 struct AutoCompleteMessage {
26 public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 32, ::std::string> text;
30 ::ll::TypedStorage<8, 128, ::ItemInstance> itemInstance;
31 // NOLINTEND
32
33 public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI ~AutoCompleteMessage();
37 // NOLINTEND
38
39 public:
40 // destructor thunk
41 // NOLINTBEGIN
42 MCFOLD void $dtor();
43 // NOLINTEND
44 };
45
46public:
47 // member variables
48 // NOLINTBEGIN
49 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mIntellisenseMessages;
50 ::ll::TypedStorage<1, 1, bool> mIsDevConsole;
51 ::ll::TypedStorage<8, 32, ::std::string> mLastTabCompleteMessage;
52 ::ll::TypedStorage<4, 4, int> mLastTabCompleteIndex;
53 ::ll::TypedStorage<1, 1, bool> mInitTabComplete;
54 ::ll::TypedStorage<1, 1, bool> mNeedsLayoutUpdate;
55 ::ll::TypedStorage<4, 4, int> mAutoCompleteGridSize;
56 ::ll::TypedStorage<8, 24, ::std::vector<::IntellisenseHandler::AutoCompleteMessage>> mAutoCompleteMessages;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI ::std::unique_ptr<::AutoCompleteInformation> _getAutoCompleteOptions(
63 ::CommandOrigin const& origin,
64 ::std::string const& _cmdLine,
65 uint cursorPositionUnsafe,
66 ::CommandRegistry& registry,
67 bool isPlayerMention
68 ) const;
69
70 MCAPI ::std::unique_ptr<::CommandOrigin>
71 _getCommandOrigin(::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel) const;
72
73 MCAPI void _handleCommandIntellisense(
74 ::ClientInstanceScreenModel& screenModel,
75 ::CommandOrigin const& origin,
76 ::std::string const& currentMessage,
77 uint cursorPositionUnsafe
78 );
79
80 MCAPI bool _isPlayerMention(::std::string const& in) const;
81
82 MCAPI void _updateAutoCompleteMessages(
83 ::AutoCompleteInformation const& autocompleteInfo,
84 ::CommandOrigin const& origin,
85 ::CommandRegistry const& registry,
86 bool isCheatsEnabled,
87 bool isCommand
88 );
89
90 MCAPI void _updateIntellisenseMessages(::CommandSyntaxInformation const& intellisenseInfo);
91
92 MCAPI ::std::string getAutoCompleteText(int index);
93
94 MCAPI void handleClickComplete(
95 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
96 ::std::string& currentMessage,
97 int clickedIndex
98 );
99
100 MCAPI void handleTabComplete(
101 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
102 ::std::string& currentMessage,
103 int index
104 );
105
106 MCAPI void handleTabComplete(
107 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
108 ::CommandOrigin const& origin,
109 ::std::string& currentMessage,
110 int index,
111 bool isSlashRequired
112 );
113
114 MCAPI void updateIntellisense(
115 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
116 ::std::string const& currentMessage
117 );
118
119 MCAPI ~IntellisenseHandler();
120 // NOLINTEND
121
122public:
123 // destructor thunk
124 // NOLINTBEGIN
125 MCAPI void $dtor();
126 // NOLINTEND
127};
Definition ClientInstanceScreenModel.h:5
Definition CommandOrigin.h:32
Definition CommandRegistry.h:50
Definition IntellisenseHandler.h:5
Definition AutoCompleteInformation.h:10
Definition CommandSyntaxInformation.h:10
Definition IntellisenseHandler.h:13