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