LeviLamina
Loading...
Searching...
No Matches
ActorSpawnRuleGroup.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Experiments;
11class MobSpawnRules;
12class Random;
15struct Tick;
16namespace br::spawn { class SpawnPlacements; }
17namespace cereal { struct ReflectionCtx; }
18// clang-format on
19
20class ActorSpawnRuleGroup {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, int>> mCategoryLookup;
25 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, int>> mSpawnDelayStartMap;
26 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 ActorSpawnRuleGroup& operator=(ActorSpawnRuleGroup const&);
32 ActorSpawnRuleGroup(ActorSpawnRuleGroup const&);
33 ActorSpawnRuleGroup();
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual ~ActorSpawnRuleGroup();
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ActorSpawnRuleGroup(
45 ::ResourcePackManager& resourcePackManager,
47 ::br::spawn::SpawnPlacements& spawnPlacements,
49 ::LinkedAssetValidator& linkedAssetValidator,
50 ::Experiments const& experiments,
51 ::IMinecraftEventing& eventing
52 );
53
54 MCAPI int getActorSpawnPool(::ActorDefinitionIdentifier const& id) const;
55
56 MCAPI int getDelayEnd(::std::string const& id) const;
57
58 MCAPI void offSetDelayByCurrentTick(::Tick const& currentTick);
59
60 MCAPI void resetDelayEnd(::MobSpawnRules spawnRules, uint64 age, ::Random& random);
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(
67 ::ResourcePackManager& resourcePackManager,
69 ::br::spawn::SpawnPlacements& spawnPlacements,
71 ::LinkedAssetValidator& linkedAssetValidator,
72 ::Experiments const& experiments,
73 ::IMinecraftEventing& eventing
74 );
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCAPI void $dtor();
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCAPI static void** $vftable();
87 // NOLINTEND
88};
Definition Experiments.h:14
Definition IMinecraftEventing.h:138
Definition IWorldRegistriesProvider.h:25
Definition LinkedAssetValidator.h:8
Definition MobSpawnRules.h:21
Definition Random.h:10
Definition ResourcePackManager.h:35
Definition SpawnPlacements.h:28
Definition ActorDefinitionIdentifier.h:15
Definition Tick.h:5
Definition ReflectionCtx.h:11
Definition ctx.h:5