LeviLamina
Loading...
Searching...
No Matches
ActorPropertyUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
9class HashedString;
11struct ActorUniqueID;
12struct MolangScriptArg;
13struct PropertySyncData;
14// clang-format on
15
16namespace ActorPropertyUtils {
17// functions
18// NOLINTBEGIN
19MCAPI void addPendingEventResponseChange(
20 ::PropertyComponent const& props,
21 ::Actor& actor,
22 ::HashedString const& propertyName,
23 ::MolangScriptArg const& molangResult,
24 ::std::string const& displayName
25);
26
27#ifdef LL_PLAT_C
28MCAPI void ingestPropertySyncData(
29 ::PropertyComponent& props,
30 ::PropertySyncData const& syncData,
31 ::ActorUniqueID id,
32 ::EntityOverrides const& overrides
33);
34#endif
35
36MCAPI bool tryQueueBoolValue(::PropertyComponent const& props, ::Actor& actor, uint64 propertyNameHash, bool value);
37
38MCAPI bool
39tryQueueEnumIndexValueByIndex(::PropertyComponent const& props, ::Actor& actor, uint64 propertyNameHash, uint64 value);
40
41MCAPI bool tryQueueEnumIndexValueByString(
42 ::PropertyComponent const& props,
43 ::Actor& actor,
44 uint64 propertyNameHash,
45 ::std::string const& value
46);
47
48MCAPI bool tryQueueFloatValue(::PropertyComponent const& props, ::Actor& actor, uint64 propertyNameHash, float value);
49
50MCAPI bool tryQueueIntValue(::PropertyComponent const& props, ::Actor& actor, uint64 propertyNameHash, int value);
51
52MCAPI bool tryQueueVariantValue(
53 ::PropertyComponent const& properties,
54 ::Actor& actor,
55 uint64 propertyNameHash,
56 ::std::variant<int, float, bool, ::std::string> const& value
57);
58// NOLINTEND
59
60} // namespace ActorPropertyUtils
Definition Actor.h:125
Definition EntityOverrides.h:8
Definition HashedString.h:5
Definition PropertyComponent.h:21
Definition ActorUniqueID.h:10
Definition MolangScriptArg.h:35
Definition PropertySyncData.h:5