LeviLamina
Loading...
Searching...
No Matches
DynamicProperties Class Reference

Classes

struct  PropertyCollection

Public Types

using PropertyVariant = ::std::variant<double, float, bool, ::std::string, ::Vec3>

Public Member Functions

MCFOLD::DynamicProperties::PropertyCollection const * _getPropertyCollection (::std::string const &collectionName) const
MCFOLD::DynamicProperties::PropertyCollection * _getPropertyCollection (::std::string const &collectionName)
MCAPI void clearCollection (::std::string const &collectionName)
MCAPI void deserialize (::CompoundTag const &root, ::cereal::ReflectionCtx const &ctx)
MCFOLD uint64 getCollectionCount () const
MCAPI ::std::variant< double, float, bool, ::std::string, ::Vec3 > const * getDynamicProperty (::std::string const &key, ::std::string const &collectionName) const
MCAPI ::std::vector<::std::string > getDynamicPropertyIds (::std::string const &collectionName) const
MCFOLD ::std::unordered_map<::std::string, ::DynamicProperties::PropertyCollection > const & getPropertyCollections () const
MCAPI uint64 getTotalByteCount () const
MCAPI uint64 getTotalByteCount (::std::string const &collectionName) const
MCAPI bool removeDynamicProperty (::std::string const &key, ::std::string const &collectionName)
MCAPI ::std::unique_ptr<::CompoundTagserialize (::cereal::ReflectionCtx const &ctx) const
MCAPI void setDynamicProperty (::std::string const &key, ::std::variant< double, float, bool, ::std::string, ::Vec3 > const &value, ::std::string const &collectionName)
MCAPI void updateCollectionName (::std::string const &from, ::std::string const &to)
MCFOLD void $dtor ()

Static Public Member Functions

static MCAPI void bindType (::cereal::ReflectionCtx &ctx)
static MCAPI ::std::optional<::Scripting::ArgumentOutOfBoundsErrorvalidateDynamicProperty (::std::string const &key, ::std::variant< double, float, bool, ::std::string, ::Vec3 > const *value)
static MCAPI ::std::string validateDynamicProperty_V010 (::DynamicPropertyDefinition const *propertyDefinition, ::std::string const &key, ::std::variant< double, float, bool, ::std::string, ::Vec3 > const *value)
static MCAPI ::std::string const & STORAGE_TAG ()

Public Attributes

::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, ::DynamicProperties::PropertyCollection > > mPropertyCollections

The documentation for this class was generated from the following file: