Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ContainerInteractionStateMachine.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/ViewRequest.h"
7#include "mc/client/gui/screens/ButtonEventType.h"
8#include "mc/client/gui/screens/Node.h"
9#include "mc/client/gui/screens/NodeId.h"
10
11// auto generated forward declare list
12// clang-format off
13struct ButtonEdge;
14struct PointerHeldEdge;
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 128, ::Node> mCurrentNode;
23 ::ll::TypedStorage<4, 4, ::NodeId> mCurrentNodeId;
24 ::ll::TypedStorage<4, 4, ::NodeId> mDefaultNodeId;
25 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::Node>> mNodes;
26 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::std::vector<::ButtonEdge>>> mButtonEdges;
27 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::std::vector<::PointerHeldEdge>>> mPointerHeldEdges;
28 ::ll::TypedStorage<4, 4, ::NodeId> mNodeChangeRequest;
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
35
36 MCNAPI ::ui::ViewRequest
37 _changeState(::NodeId target, uint buttonId, ::std::string const& collectionName, int collectionIndex);
38
39 MCNAPI void addEdge(
40 ::NodeId source,
41 ::NodeId target,
42 ::std::function<bool(uint, ::ButtonEventType, ::std::string const&, int)> requirement,
43 int priority
44 );
45
46 MCNAPI void addEdge(
47 ::NodeId source,
48 ::NodeId target,
49 ::std::function<bool(::PointerHeldScreenEventData const&, ::std::string const&, int)> requirement,
50 int priority
51 );
52
53 MCNAPI void addNode(
54 ::NodeId id,
55 ::std::function<::ui::ViewRequest(uint, ::std::string const&, int)> onEnter,
56 ::std::function<::ui::ViewRequest(uint, ::std::string const&, int)> onExit,
57 bool defaultNode
58 );
59
60 MCNAPI ::ui::ViewRequest receiveEvent(
61 ::PointerHeldScreenEventData const& pointerHeldEvent,
62 ::std::string const& collectionName,
63 int collectionIndex
64 );
65
66 MCNAPI ::ui::ViewRequest
67 receiveEvent(uint buttonId, ::ButtonEventType buttonType, ::std::string const& collectionName, int collectionIndex);
68 // NOLINTEND
69
70public:
71 // constructor thunks
72 // NOLINTBEGIN
73 MCNAPI void* $ctor();
74 // NOLINTEND
75};
Definition ContainerInteractionStateMachine.h:5
MCAPI void addEdge(::NodeId source, ::NodeId target, ::std::function< bool(uint, ::ButtonEventType, ::std::string const &, int)> requirement, int priority)
MCAPI::ui::ViewRequest receiveEvent(::PointerHeldScreenEventData const &pointerHeldEvent, ::std::string const &collectionName, int collectionIndex)
MCAPI void addNode(::NodeId id, ::std::function<::ui::ViewRequest(uint, ::std::string const &, int)> onEnter, ::std::function<::ui::ViewRequest(uint, ::std::string const &, int)> onExit, bool defaultNode)
MCAPI::ui::ViewRequest receiveEvent(uint buttonId, ::ButtonEventType buttonType, ::std::string const &collectionName, int collectionIndex)
MCAPI::ui::ViewRequest _changeState(::NodeId target, uint buttonId, ::std::string const &collectionName, int collectionIndex)
MCAPI void addEdge(::NodeId source, ::NodeId target, ::std::function< bool(::PointerHeldScreenEventData const &, ::std::string const &, int)> requirement, int priority)
Definition ButtonEdge.h:5
Definition PointerHeldEdge.h:5
Definition PointerHeldScreenEventData.h:5