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
13class Recipes;
14class ServerPlayer;
19// clang-format on
20
22public:
23 // RecipeUnlockingSystem inner types declare
24 // clang-format off
26 // clang-format on
27
28 // RecipeUnlockingSystem inner types define
30 public:
31 // member variables
32 // NOLINTBEGIN
35 // NOLINTEND
36
37 public:
38 // prevent constructor by default
42 };
43
44public:
45 // static functions
46 // NOLINTBEGIN
47 MCNAPI static void
49
50 MCNAPI static void
52
53 MCNAPI static void
55
56 MCNAPI static void _tick(
57 ::ViewT<
62 );
63
64 MCNAPI static ::std::vector<::std::string> _unlockRecipes(
66 ::Recipes const& recipes,
67 bool playerIsInWater,
68 bool doLimitedCrafting,
69 ::std::optional<::RecipeUnlockingSystem::InventoryChangedData> const& inventoryChanged
70 );
71
72 MCNAPI static void _useContext(
74 ::Recipes const& recipes,
75 ::RecipeUnlockingRequirement::UnlockingContext context,
76 ::std::vector<::std::string>& unlockedRecipeIds
77 );
78
79 MCNAPI static ::TickingSystemWithInfo createSystem();
80 // NOLINTEND
81};
Definition ActorOwnerComponent.h:10
Definition RecipeUnlockingSystem.h:21
static MCAPI void _handleInitialUnlocks(::ServerPlayer *serverPlayer, ::UnlockedRecipesServerComponent &unlockedComp)
static MCAPI ::TickingSystemWithInfo createSystem()
static MCAPI void _handleCriterionUnlocks(::ServerPlayer *serverPlayer, ::UnlockedRecipesServerComponent &unlockedComp)
static MCAPI void _useContext(::UnlockedRecipesServerComponent &unlockedComp, ::Recipes const &recipes, ::RecipeUnlockingRequirement::UnlockingContext context, ::std::vector<::std::string > &unlockedRecipeIds)
static MCAPI ::std::vector<::std::string > _unlockRecipes(::UnlockedRecipesServerComponent &unlockedComp, ::Recipes const &recipes, bool playerIsInWater, bool doLimitedCrafting, ::std::optional<::RecipeUnlockingSystem::InventoryChangedData > const &inventoryChanged)
static MCAPI void _tick(::ViewT< ::StrictEntityContext, ::Include<::ServerPlayerComponent >, ::UnlockedRecipesServerComponent, ::ActorOwnerComponent > view)
static MCAPI void _handleInstructionUnlocks(::ServerPlayer *serverPlayer, ::UnlockedRecipesServerComponent &unlockedComp)
Definition Recipes.h:36
Definition ServerPlayer.h:64
Definition StrictEntityContext.h:8
Definition UnlockedRecipesServerComponent.h:12
Definition ViewT.h:6
Definition Include.h:6
Definition RecipeUnlockingSystem.h:29
Definition ServerPlayerComponent.h:5
Definition TickingSystemWithInfo.h:13
Definition context.h:5
Definition Alias.h:14