Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI ::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 MCNAPI ::std::unique_ptr<::CommandOrigin>
58 _getCommandOrigin(::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel) const;
59
61 ::AutoCompleteInformation const& autocompleteInfo,
62 ::CommandOrigin const& origin,
63 ::CommandRegistry const& registry,
64 bool isCheatsEnabled,
65 bool isCommand
66 );
67
68 MCNAPI int getAutoCompleteItemId(int index);
69
70 MCNAPI ::std::string getAutoCompleteText(int index);
71
73 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
74 ::std::string& currentMessage,
75 int clickedIndex
76 );
77
78 MCNAPI void handleTabComplete(
79 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
80 ::std::string& currentMessage,
81 int index
82 );
83
84 MCNAPI 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 MCNAPI void updateIntellisense(
93 ::std::weak_ptr<::ClientInstanceScreenModel> minecraftScreenModel,
94 ::std::string const& currentMessage
95 );
96
98 // NOLINTEND
99
100public:
101 // destructor thunk
102 // NOLINTBEGIN
103 MCNAPI void $dtor();
104 // NOLINTEND
105};
Definition ClientInstanceScreenModel.h:5
Definition CommandOrigin.h:32
Definition CommandRegistry.h:51
Definition IntellisenseHandler.h:5
MCAPI void _updateAutoCompleteMessages(::AutoCompleteInformation const &autocompleteInfo, ::CommandOrigin const &origin, ::CommandRegistry const &registry, bool isCheatsEnabled, bool isCommand)
MCAPI ::std::unique_ptr<::CommandOrigin > _getCommandOrigin(::std::weak_ptr<::ClientInstanceScreenModel > minecraftScreenModel) const
MCAPI void updateIntellisense(::std::weak_ptr<::ClientInstanceScreenModel > minecraftScreenModel, ::std::string const &currentMessage)
MCAPI::std::string getAutoCompleteText(int index)
MCAPI void handleTabComplete(::std::weak_ptr<::ClientInstanceScreenModel > minecraftScreenModel, ::std::string &currentMessage, int index)
MCAPI ~IntellisenseHandler()
MCAPI void handleTabComplete(::std::weak_ptr<::ClientInstanceScreenModel > minecraftScreenModel, ::CommandOrigin const &origin, ::std::string &currentMessage, int index, bool isSlashRequired)
MCAPI void handleClickComplete(::std::weak_ptr<::ClientInstanceScreenModel > minecraftScreenModel, ::std::string &currentMessage, int clickedIndex)
MCAPI int getAutoCompleteItemId(int index)
MCAPI void $dtor()
MCAPI ::std::unique_ptr<::AutoCompleteInformation > _getAutoCompleteOptions(::CommandOrigin const &origin, ::std::string const &_cmdLine, uint cursorPositionUnsafe, ::CommandRegistry &registry, bool isPlayerMention) const
Definition AutoCompleteInformation.h:10
Definition IntellisenseHandler.h:13