LeviLamina
Loading...
Searching...
No Matches
SpawnGroupRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8class MobSpawnRules;
10class SemVersion;
11class SpawnGroupData;
13// clang-format on
14
16public:
17 // SpawnGroupRegistry inner types define
18 using SpawnGroupRegistryMap = ::std::vector<::std::unique_ptr<::SpawnGroupData>>;
19
20 using SpawnGroupLookupMap = ::std::unordered_map<::std::string, ::SpawnGroupData*>;
21
22 using SpawnRulesHandler =
23 ::std::function<void(::std::string const&, int, ::BiomeFilterGroup&, ::MobSpawnRules&, ::SemVersion const&)>;
24
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::SpawnGroupData>>> mSpawnGroupRegistry;
29 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::SpawnGroupData*>> mSpawnGroupLookupMap;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 0
36 virtual ~SpawnGroupRegistry() = default;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI void _addSpawnRules(::std::string const& identifier, ::MobSpawnRules& spawnRules);
43
44 MCAPI void _getResources(
45 ::ResourcePackManager& callback,
46 ::std::function<void(::std::string const&, int, ::BiomeFilterGroup&, ::MobSpawnRules&, ::SemVersion const&)>
47 resourcePackManager
48 );
49
50 MCAPI bool _readJson(::std::string&& data, ::std::unordered_map<::std::string, ::ActorSpawnRuleData>& dataMap);
51
52 MCAPI void readResourceFiles(
53 ::ResourcePackManager& dataMap,
54 ::std::unordered_map<::std::string, ::ActorSpawnRuleData>& resourcePackManager
55 );
56 // NOLINTEND
57
58public:
59 // destructor thunk
60 // NOLINTBEGIN
61
62 // NOLINTEND
63
64public:
65 // vftables
66 // NOLINTBEGIN
67 MCAPI static void** $vftable();
68 // NOLINTEND
69};
Definition BiomeFilterGroup.h:13
Definition MobSpawnRules.h:16
Definition ResourcePackManager.h:24
Definition SemVersion.h:15
Definition SpawnGroupData.h:10
Definition SpawnGroupRegistry.h:15
Definition ActorSpawnRuleData.h:5