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
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 MCNAPI bool randomTeleport(::Actor& owner);
32
33 MCNAPI bool teleport(::Actor& owner, ::Vec3 const& pos);
34
35 MCNAPI bool teleportTowards(::Actor& owner, ::Actor const& target);
36 // NOLINTEND
37};
Definition Actor.h:103
Definition TeleportComponent.h:13
MCAPI bool randomTeleport(::Actor &owner)
MCAPI bool teleportTowards(::Actor &owner, ::Actor const &target)
MCAPI bool teleport(::Actor &owner, ::Vec3 const &pos)
Definition Vec3.h:10