LeviLamina
Loading...
Searching...
No Matches
DynamicPropertiesDefinition.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/persistence/DynamicPropertyDefinePropertyError.h"
7
8// auto generated forward declare list
9// clang-format off
10class ActorDefinition;
12// clang-format on
13
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::DynamicPropertyDefinition>> mDynamicProperties;
19 ::ll::TypedStorage<8, 8, uint64> mCost;
20 // NOLINTEND
21
22public:
23 // member functions
24 // NOLINTBEGIN
27 ::std::string const& identifier,
28 uint64 sizeLimit,
29 ::std::string& error
30 ) const;
31
32 MCNAPI void clear();
33
34 MCNAPI ::std::optional<::DynamicPropertyDefinePropertyError>
35 defineProperty(::std::string const& identifier, ::DynamicPropertyDefinition definition);
36
37 MCNAPI ::DynamicPropertyDefinition const* tryGetPropertyDefinition(::std::string const& identifier) const;
38
39 MCNAPI ::std::optional<::std::string>
40 tryMergeDefinitions(::DynamicPropertiesDefinition const& other, ::std::string const& identifier, uint64 sizeLimit);
41
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCNAPI static void
49 clearAll(::std::unordered_map<::std::string, ::std::unique_ptr<::ActorDefinition>> const& definitionList);
50 // NOLINTEND
51
52public:
53 // static variables
54 // NOLINTBEGIN
55 MCNAPI static uint64 const& ACTOR_TOTAL_DYNAMIC_PROPERTY_SIZE_LIMIT();
56
57 MCNAPI static uint64 const& IDENTIFIER_SIZE_LIMIT();
58
59 MCNAPI static uint64 const& WORLD_TOTAL_DYNAMIC_PROPERTY_SIZE_LIMIT();
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCNAPI void $dtor();
66 // NOLINTEND
67};
Definition ActorDefinition.h:83
Definition DynamicPropertiesDefinition.h:14
static MCAPI uint64 const & WORLD_TOTAL_DYNAMIC_PROPERTY_SIZE_LIMIT()
static MCAPI void clearAll(::std::unordered_map<::std::string, ::std::unique_ptr<::ActorDefinition > > const &definitionList)
MCAPI::DynamicPropertyDefinition const * tryGetPropertyDefinition(::std::string const &identifier) const
MCAPI ::std::optional<::DynamicPropertyDefinePropertyError > defineProperty(::std::string const &identifier, ::DynamicPropertyDefinition definition)
MCAPI ::std::optional<::std::string > tryMergeDefinitions(::DynamicPropertiesDefinition const &other, ::std::string const &identifier, uint64 sizeLimit)
MCAPI bool _canMergeDefinitions(::DynamicPropertiesDefinition const &other, ::std::string const &identifier, uint64 sizeLimit, ::std::string &error) const
static MCAPI uint64 const & IDENTIFIER_SIZE_LIMIT()
static MCAPI uint64 const & ACTOR_TOTAL_DYNAMIC_PROPERTY_SIZE_LIMIT()
Definition DynamicPropertyDefinition.h:5