LeviLamina
Loading...
Searching...
No Matches
TeleportComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11// clang-format on
12
13class TeleportComponent {
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<1, 1, bool> mRandomTeleports;
18 ::ll::TypedStorage<4, 4, int> mMinTeleportTime;
19 ::ll::TypedStorage<4, 4, int> mMaxTeleportTime;
20 ::ll::TypedStorage<4, 12, ::Vec3> mRandomTeleportCube;
21 ::ll::TypedStorage<4, 4, float> mTargetDistance;
22 ::ll::TypedStorage<4, 4, float> mTargetTeleportChance;
23 ::ll::TypedStorage<4, 4, float> mLightTeleportChance;
24 ::ll::TypedStorage<4, 4, float> mDarkTeleportChance;
25 ::ll::TypedStorage<4, 4, int> mTeleportTime;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI TeleportComponent();
32
33 MCFOLD float getDarkTeleportChance();
34
35 MCFOLD float getLightTeleportChance();
36
37 MCFOLD int getMaxTeleportTime();
38
39 MCFOLD int getMinTeleportTime();
40
41 MCFOLD bool getRandomTeleports();
42
43 MCFOLD float getTargetDistance();
44
45 MCFOLD float getTargetTeleportChance();
46
47 MCFOLD int getTeleportTime();
48
49 MCAPI void initFromDefinition(::Actor& actor);
50
51 MCAPI bool randomTeleport(::Actor& owner);
52
53 MCFOLD void setTeleportTime(int teleportTime);
54
55 MCAPI bool teleport(::Actor& owner, ::Vec3 const& pos);
56
57 MCAPI bool teleportTowards(::Actor& owner, ::Actor const& target);
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void* $ctor();
64 // NOLINTEND
65};
Definition Actor.h:125
Definition Vec3.h:10