LeviLamina
Loading...
Searching...
No Matches
EntitySubsensor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec2.h"
7#include "mc/world/actor/ActorFilterGroup.h"
8#include "mc/world/level/Tick.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class Vec3;
14// clang-format on
15
16class EntitySubsensor {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 8, ::Vec2> mRange;
21 ::ll::TypedStorage<4, 4, float> mYOffset;
22 ::ll::TypedStorage<1, 1, bool> mRequireAll;
23 ::ll::TypedStorage<4, 4, int> mMinimumCount;
24 ::ll::TypedStorage<4, 4, int> mMaximumCount;
25 ::ll::TypedStorage<8, 8, uint64> mCooldownInTicks;
26 ::ll::TypedStorage<8, 32, ::std::string> mEvent;
27 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mFilter;
28 ::ll::TypedStorage<8, 16, ::std::optional<::Tick>> mNextSensingTick;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 EntitySubsensor& operator=(EntitySubsensor const&);
34 EntitySubsensor();
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI EntitySubsensor(::EntitySubsensor const&);
40
41 MCAPI void senseEntities(
42 ::Actor& actor,
43 ::gsl::span<::gsl::not_null<::Actor*>> const& nearbyActors,
44 ::Tick const& currentTick,
45 ::Vec3 const& searchAreaPos,
46 ::Vec3 const& searchAreaGrowth,
47 bool canFireEventWithNoEntities
48 );
49
50 MCAPI ~EntitySubsensor();
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCAPI void* $ctor(::EntitySubsensor const&);
57 // NOLINTEND
58
59public:
60 // destructor thunk
61 // NOLINTBEGIN
62 MCFOLD void $dtor();
63 // NOLINTEND
64};
Definition Actor.h:125
Definition Vec3.h:10
Definition Tick.h:5