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;
10class HashedString;
12class PropertyGroup;
13struct ActorUniqueID;
14struct MolangScriptArg;
15struct PropertySyncData;
16// clang-format on
17
18namespace ActorPropertyUtils {
19// functions
20// NOLINTBEGIN
21MCAPI bool _checkAndQueueBoolValue(
22 ::PropertyGroup const&,
23 uint64 overallIndex,
24 ::ActorDefinitionDiffList* actorDiffList,
25 bool value
26);
27
28MCAPI bool _checkAndQueueEnumIndexValueByHash(
29 ::PropertyGroup const& propertyGroup,
30 uint64 enumIndexArrayIndex,
31 uint64 overallIndex,
32 ::ActorDefinitionDiffList* actorDiffList,
33 uint64 value
34);
35
36MCAPI bool _checkAndQueueFloatValue(
37 ::PropertyGroup const&,
38 uint64,
39 uint64 overallIndex,
40 ::ActorDefinitionDiffList* actorDiffList,
41 float value
42);
43
44MCAPI bool _checkAndQueueIntValue(
45 ::PropertyGroup const&,
46 uint64,
47 uint64 overallIndex,
48 ::ActorDefinitionDiffList* actorDiffList,
49 int value
50);
51
52MCAPI void addPendingEventResponseChange(
53 ::PropertyComponent const& props,
54 ::Actor& actor,
55 ::HashedString const& propertyName,
56 ::MolangScriptArg const& molangResult,
57 ::std::string const& displayName
58);
59
60MCAPI_C void ingestPropertySyncData(
61 ::PropertyComponent& props,
62 ::PropertySyncData const& syncData,
63 ::ActorUniqueID id,
64 ::EntityOverrides const& overrides
65);
66
67MCAPI bool tryQueueBoolValue(::PropertyComponent const& props, ::Actor& actor, uint64 propertyNameHash, bool value);
68
69MCAPI bool
70tryQueueEnumIndexValueByIndex(::PropertyComponent const& props, ::Actor& actor, uint64 propertyNameHash, uint64 value);
71
72MCAPI bool tryQueueEnumIndexValueByString(
73 ::PropertyComponent const& props,
74 ::Actor& actor,
75 uint64 propertyNameHash,
76 ::std::string const& value
77);
78
79MCAPI bool tryQueueFloatValue(::PropertyComponent const& props, ::Actor& actor, uint64 propertyNameHash, float value);
80
81MCAPI bool tryQueueIntValue(::PropertyComponent const& props, ::Actor& actor, uint64 propertyNameHash, int value);
82// NOLINTEND
83
84} // namespace ActorPropertyUtils
Definition ActorDefinitionDiffList.h:15
Definition Actor.h:105
Definition EntityOverrides.h:10
Definition HashedString.h:5
Definition PropertyComponent.h:19
Definition PropertyGroup.h:21
Definition ActorUniqueID.h:5
Definition MolangScriptArg.h:33
Definition PropertySyncData.h:5