Skip to content
LeviMC
English
AutoLightDark
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#include "mc/world/actor/ActorFilterGroup.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12namespace SharedTypes::v1_26_60 { struct TeleportComponentDefinition; }
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<1, 1, bool> mRandomTeleports;
20 ::ll::TypedStorage<1, 1, bool> mTeleportsOnProjectileHit;
21 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mProjectileFilter;
22 ::ll::TypedStorage<4, 4, int> mMinTeleportTime;
23 ::ll::TypedStorage<4, 4, int> mMaxTeleportTime;
24 ::ll::TypedStorage<4, 12, ::Vec3> mRandomTeleportCube;
25 ::ll::TypedStorage<4, 4, float> mTargetDistance;
26 ::ll::TypedStorage<4, 4, float> mTargetTeleportChance;
27 ::ll::TypedStorage<4, 4, float> mLightTeleportChance;
28 ::ll::TypedStorage<4, 4, float> mDarkTeleportChance;
29 ::ll::TypedStorage<4, 4, int> mTeleportTime;
30 // NOLINTEND
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCNAPI void initFromDefinition(::Actor& actor);
36
38
39 MCNAPI bool randomTeleport(::Actor& owner);
40
41 MCNAPI bool teleport(::Actor& owner, ::Vec3 const& pos);
42
43 MCNAPI bool teleportTowards(::Actor& owner, ::Actor const& target);
44
45 MCNAPI bool tryTeleportFromProjectileHit(::Actor& owner, ::Actor const& projectile);
46 // NOLINTEND
47};
Definition Actor.h:116
Definition TeleportComponent.h:15
MCAPI bool randomTeleport(::Actor &owner)
MCAPI bool tryTeleportFromProjectileHit(::Actor &owner, ::Actor const &projectile)
MCAPI bool teleportTowards(::Actor &owner, ::Actor const &target)
MCAPI void initFromDefinition(::SharedTypes::v1_26_60::TeleportComponentDefinition const &definition)
MCAPI void initFromDefinition(::Actor &actor)
MCAPI bool teleport(::Actor &owner, ::Vec3 const &pos)
Definition Vec3.h:10
Definition TeleportComponentDefinition.h:16