LeviLamina
Loading...
Searching...
No Matches
InsideBlockEventMap.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorDefinitionTrigger.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11// clang-format on
12
13class InsideBlockEventMap {
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnEnteredBlock;
18 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnExitedBlock;
19 ::ll::TypedStorage<8, 8, ::gsl::not_null<::Block const*>> mBlock;
20 ::ll::TypedStorage<1, 1, bool> mWatchEnter;
21 ::ll::TypedStorage<1, 1, bool> mWatchExit;
22 ::ll::TypedStorage<1, 1, bool> mCurrentlyInside;
23 ::ll::TypedStorage<1, 1, bool> mWasInside;
24 ::ll::TypedStorage<1, 1, bool> mIgnoreStates;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 InsideBlockEventMap(InsideBlockEventMap const&);
30 InsideBlockEventMap();
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI InsideBlockEventMap(::InsideBlockEventMap&&);
36
37 MCAPI InsideBlockEventMap(
38 ::Block const& block,
39 bool watchEnter,
40 bool watchExit,
41 bool ignoreStates,
42 ::ActorDefinitionTrigger const& enteredEvent,
43 ::ActorDefinitionTrigger const& exitedEvent
44 );
45
46 MCAPI ::gsl::not_null<::Block const*> getBlock() const;
47
48 MCFOLD ::ActorDefinitionTrigger const& getEnteredEvent() const;
49
50 MCFOLD ::ActorDefinitionTrigger const& getExitedEvent() const;
51
52 MCAPI bool isActorCurrentlyInside() const;
53
54 MCAPI bool isIgnoringStates() const;
55
56 MCFOLD bool isWatchingIfActorEnters() const;
57
58 MCFOLD bool isWatchingIfActorExits() const;
59
60 MCAPI ::InsideBlockEventMap& operator=(::InsideBlockEventMap const&);
61
62 MCAPI void setCurrentlyInside(bool isInside);
63
64 MCAPI void setWasInside(bool wasInside);
65
66 MCAPI bool wasActorInsideLastTick() const;
67
68 MCAPI ~InsideBlockEventMap();
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCAPI void* $ctor(::InsideBlockEventMap&&);
75
76 MCAPI void* $ctor(
77 ::Block const& block,
78 bool watchEnter,
79 bool watchExit,
80 bool ignoreStates,
81 ::ActorDefinitionTrigger const& enteredEvent,
82 ::ActorDefinitionTrigger const& exitedEvent
83 );
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCFOLD void $dtor();
90 // NOLINTEND
91};
Definition ActorDefinitionTrigger.h:16
Definition Block.h:69