LeviLamina
Loading...
Searching...
No Matches
RecipeUnlockingSystem.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/ecs/ViewT.h"
7
#include "mc/deps/ecs/strict/Include.h"
8
#include "mc/world/item/crafting/RecipeUnlockingRequirement.h"
9
10
// auto generated forward declare list
11
// clang-format off
12
class
ActorOwnerComponent
;
13
class
Recipes
;
14
class
ServerPlayer
;
15
class
StrictEntityContext
;
16
class
UnlockedRecipesServerComponent
;
17
struct
ServerPlayerComponent
;
18
struct
TickingSystemWithInfo
;
19
// clang-format on
20
21
class
RecipeUnlockingSystem
{
22
public
:
23
// RecipeUnlockingSystem inner types declare
24
// clang-format off
25
struct
InventoryChangedData
;
26
// clang-format on
27
28
// RecipeUnlockingSystem inner types define
29
struct
InventoryChangedData
{
30
public
:
31
// member variables
32
// NOLINTBEGIN
33
::ll::UntypedStorage<8, 24>
mUnk54225a;
34
::ll::UntypedStorage<8, 8>
mUnk864952;
35
// NOLINTEND
36
37
public
:
38
// prevent constructor by default
39
InventoryChangedData
& operator=(
InventoryChangedData
const
&);
40
InventoryChangedData
(
InventoryChangedData
const
&);
41
InventoryChangedData
();
42
};
43
44
public
:
45
// static functions
46
// NOLINTBEGIN
47
MCAPI
static
void
48
_handleCriterionUnlocks(
::ServerPlayer
* serverPlayer,
::UnlockedRecipesServerComponent
& unlockedComp);
49
50
MCAPI
static
void
51
_handleInitialUnlocks(
::ServerPlayer
* serverPlayer,
::UnlockedRecipesServerComponent
& unlockedComp);
52
53
MCAPI
static
void
54
_handleInstructionUnlocks(
::ServerPlayer
* serverPlayer,
::UnlockedRecipesServerComponent
& unlockedComp);
55
56
MCAPI
static
void
_tick(
::ViewT
<
57
::StrictEntityContext
,
58
::Include<::ServerPlayerComponent>
,
59
::UnlockedRecipesServerComponent
,
60
::ActorOwnerComponent
> view);
61
62
MCAPI static ::std::vector<::std::string> _unlockRecipes(
63
::UnlockedRecipesServerComponent
& unlockedComp,
64
::Recipes
const
& recipes,
65
bool
playerIsInWater,
66
::std::optional<::RecipeUnlockingSystem::InventoryChangedData>
const
& inventoryChanged
67
);
68
69
MCAPI
static
void
_useContext(
70
::UnlockedRecipesServerComponent
& unlockedComp,
71
::Recipes
const
& recipes,
72
::RecipeUnlockingRequirement::UnlockingContext
context
,
73
::std::vector<::std::string>& unlockedRecipeIds
74
);
75
76
MCAPI static ::TickingSystemWithInfo createSystem();
77
// NOLINTEND
78
};
ActorOwnerComponent
Definition
ActorOwnerComponent.h:10
RecipeUnlockingSystem
Definition
RecipeUnlockingSystem.h:21
Recipes
Definition
Recipes.h:36
ServerPlayer
Definition
ServerPlayer.h:64
StrictEntityContext
Definition
StrictEntityContext.h:10
UnlockedRecipesServerComponent
Definition
UnlockedRecipesServerComponent.h:12
ViewT
Definition
ViewT.h:6
Include
Definition
Include.h:6
RecipeUnlockingSystem::InventoryChangedData
Definition
RecipeUnlockingSystem.h:29
ServerPlayerComponent
Definition
ServerPlayerComponent.h:5
TickingSystemWithInfo
Definition
TickingSystemWithInfo.h:11
context
Definition
context.h:5
ll::UntypedStorage
Definition
Alias.h:14
src
mc
entity
systems
RecipeUnlockingSystem.h
Generated on Sat Apr 26 2025 05:55:37 for LeviLamina by
1.12.0