LeviLamina
Loading...
Searching...
No Matches
LayeredAbilities.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/actor/player/AbilitiesLayer.h"
5
6// auto generated inclusion list
7#include "mc/server/commands/PlayerPermissionLevel.h"
8#include "mc/world/actor/player/AbilitiesIndex.h"
9#include "mc/world/actor/player/Ability.h"
10
11// auto generated forward declare list
12// clang-format off
13class Abilities;
14class Ability;
16// clang-format on
17
19public:
20 LLNDAPI Ability& getAbility(::AbilitiesIndex val);
21 LLNDAPI Ability& getAbility(::AbilitiesLayer layer, ::AbilitiesIndex val);
22 LLAPI bool setAbility(::AbilitiesIndex val, float value);
23 LLAPI bool setAbility(::AbilitiesIndex val, bool value);
24
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<1, 2, ::PermissionsHandler> mPermissions;
29 ::ll::TypedStorage<4, 1440, ::std::array<::Abilities, 6>> mLayers;
30 // NOLINTEND
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI LayeredAbilities();
36
37 MCAPI void forEachAbility(
38 ::std::function<void(::Ability const&, ::AbilitiesIndex)> const& callback,
39 ::Ability::Options requiredOptions
40 ) const;
41
42 MCAPI void setPlayerPermissions(::PlayerPermissionLevel permissions);
43 // NOLINTEND
44
45public:
46 // static variables
47 // NOLINTBEGIN
48 MCAPI static ::std::string const& DIFF_LAYER_AT();
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCAPI void* $ctor();
55 // NOLINTEND
56};
Definition Abilities.h:15
Definition Ability.h:5
Definition LayeredAbilities.h:18
Definition PermissionsHandler.h:14