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;
15namespace br::spawn { class SpawnPlacements; }
16namespace cereal { struct ReflectionCtx; }
17// clang-format on
18
19class ActorSpawnRuleGroup {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, int>> mCategoryLookup;
24 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, int>> mSpawnDelayStartMap;
25 ::ll::TypedStorage<8, 8, ::IMinecraftEventing&> mEventing;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 ActorSpawnRuleGroup& operator=(ActorSpawnRuleGroup const&);
31 ActorSpawnRuleGroup(ActorSpawnRuleGroup const&);
32 ActorSpawnRuleGroup();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~ActorSpawnRuleGroup() = default;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI ActorSpawnRuleGroup(
44 ::ResourcePackManager& resourcePackManager,
46 ::br::spawn::SpawnPlacements& spawnPlacements,
48 ::LinkedAssetValidator& linkedAssetValidator,
49 ::Experiments const& experiments,
50 ::IMinecraftEventing& eventing
51 );
52
53 MCAPI int getActorSpawnPool(::ActorDefinitionIdentifier const& id) const;
54
55 MCAPI int getDelayEnd(::std::string const& id) const;
56
57 MCAPI void resetDelayEnd(::MobSpawnRules spawnRules, uint64 age, ::Random& random);
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void* $ctor(
64 ::ResourcePackManager& resourcePackManager,
66 ::br::spawn::SpawnPlacements& spawnPlacements,
68 ::LinkedAssetValidator& linkedAssetValidator,
69 ::Experiments const& experiments,
70 ::IMinecraftEventing& eventing
71 );
72 // NOLINTEND
73};
Definition Experiments.h:14
Definition IMinecraftEventing.h:145
Definition IWorldRegistriesProvider.h:25
Definition LinkedAssetValidator.h:8
Definition MobSpawnRules.h:21
Definition Random.h:10
Definition ResourcePackManager.h:38
Definition SpawnPlacements.h:28
Definition ActorDefinitionIdentifier.h:15
Definition ReflectionCtx.h:11
Definition ctx.h:5