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
11// clang-format on
12
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::DynamicPropertyDefinition>> mDynamicProperties;
18 ::ll::TypedStorage<8, 8, uint64> mCost;
19 // NOLINTEND
20
21public:
22 // member functions
23 // NOLINTBEGIN
26 ::std::string const& identifier,
27 uint64 sizeLimit,
28 ::std::string& error
29 ) const;
30
31 MCNAPI ::std::optional<::DynamicPropertyDefinePropertyError>
32 defineProperty(::std::string const& identifier, ::DynamicPropertyDefinition definition);
33
34 MCNAPI ::DynamicPropertyDefinition const* tryGetPropertyDefinition(::std::string const& identifier) const;
35
36 MCNAPI ::std::optional<::std::string>
37 tryMergeDefinitions(::DynamicPropertiesDefinition const& other, ::std::string const& identifier, uint64 sizeLimit);
38
40 // NOLINTEND
41
42public:
43 // static variables
44 // NOLINTBEGIN
45 MCNAPI static uint64 const& ACTOR_TOTAL_DYNAMIC_PROPERTY_SIZE_LIMIT();
46
47 MCNAPI static uint64 const& IDENTIFIER_SIZE_LIMIT();
48
49 MCNAPI static uint64 const& WORLD_TOTAL_DYNAMIC_PROPERTY_SIZE_LIMIT();
50 // NOLINTEND
51
52public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCNAPI void $dtor();
56 // NOLINTEND
57};
Definition DynamicPropertiesDefinition.h:13
static MCAPI uint64 const & WORLD_TOTAL_DYNAMIC_PROPERTY_SIZE_LIMIT()
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