LeviLamina
Loading...
Searching...
No Matches
IntellisenseHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8class CommandOrigin;
12// clang-format on
13
15public:
16 // IntellisenseHandler inner types declare
17 // clang-format off
19 // clang-format on
20
21 // IntellisenseHandler inner types define
22 struct AutoCompleteMessage {};
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mIntellisenseMessages;
28 ::ll::TypedStorage<1, 1, bool> mIsDevConsole;
29 ::ll::TypedStorage<8, 32, ::std::string> mLastTabCompleteMessage;
30 ::ll::TypedStorage<4, 4, int> mLastTabCompleteIndex;
31 ::ll::TypedStorage<1, 1, bool> mInitTabComplete;
32 ::ll::TypedStorage<1, 1, bool> mNeedsLayoutUpdate;
33 ::ll::TypedStorage<4, 4, int> mAutoCompleteGridSize;
34 ::ll::TypedStorage<8, 24, ::std::vector<::IntellisenseHandler::AutoCompleteMessage>> mAutoCompleteMessages;
35 // NOLINTEND
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI ::std::unique_ptr<::AutoCompleteInformation> _getAutoCompleteOptions(
41 ::CommandOrigin const& origin,
42 ::std::string const& _cmdLine,
43 uint cursorPositionUnsafe,
44 ::CommandRegistry& registry,
45 bool isPlayerMention
46 ) const;
47
48 MCAPI ::std::unique_ptr<::CommandOrigin>
49 _getCommandOrigin(::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel) const;
50
51 MCAPI void _handleCommandIntellisense(
52 ::ClientInstanceScreenModel& screenModel,
53 ::CommandOrigin const& origin,
54 ::std::string const& currentMessage,
55 uint cursorPositionUnsafe
56 );
57
58 MCAPI bool _isPlayerMention(::std::string const& in) 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 void _updateIntellisenseMessages(::CommandSyntaxInformation const& intellisenseInfo);
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:47
Definition IntellisenseHandler.h:5
Definition AutoCompleteInformation.h:5
Definition CommandSyntaxInformation.h:5
Definition IntellisenseHandler.h:13