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 MCNAPI void _addSpawnRules(::std::string const& identifier, ::MobSpawnRules& spawnRules);
43
44 MCNAPI void _getResources(
45 ::ResourcePackManager& resourcePackManager,
46 ::std::function<void(::std::string const&, int, ::BiomeFilterGroup&, ::MobSpawnRules&, ::SemVersion const&)>
47 callback
48 );
49
50 MCNAPI bool _readJson(::std::string&& data, ::std::unordered_map<::std::string, ::ActorSpawnRuleData>& dataMap);
51
52 MCNAPI void readResourceFiles(
53 ::ResourcePackManager& resourcePackManager,
54 ::std::unordered_map<::std::string, ::ActorSpawnRuleData>& dataMap
55 );
56 // NOLINTEND
57
58public:
59 // vftables
60 // NOLINTBEGIN
61 MCNAPI static void** $vftable();
62 // NOLINTEND
63};
Definition BiomeFilterGroup.h:13
Definition MobSpawnRules.h:16
Definition ResourcePackManager.h:23
Definition SemVersion.h:15
Definition SpawnGroupData.h:10
Definition SpawnGroupRegistry.h:15
MCAPI void _addSpawnRules(::std::string const &identifier, ::MobSpawnRules &spawnRules)
static MCAPI void ** $vftable()
MCAPI void readResourceFiles(::ResourcePackManager &resourcePackManager, ::std::unordered_map<::std::string, ::ActorSpawnRuleData > &dataMap)
MCAPI bool _readJson(::std::string &&data, ::std::unordered_map<::std::string, ::ActorSpawnRuleData > &dataMap)
MCAPI void _getResources(::ResourcePackManager &resourcePackManager, ::std::function< void(::std::string const &, int, ::BiomeFilterGroup &, ::MobSpawnRules &, ::SemVersion const &)> callback)
Definition ActorSpawnRuleData.h:5