LeviLamina
Loading...
Searching...
No Matches
PropertyGroup Class Reference
Inheritance diagram for PropertyGroup:

Public Member Functions

MCAPI void _addBoolProperty (::std::string const &name, bool clientSync, bool defaultValue)
MCAPI void _addEnumIndexProperty (::std::string const &name, bool clientSync, ::ExpressionNode &&defaultExpression, ::std::vector<::HashedString > const &enumValues)
MCAPI void _addEnumIndexProperty (::std::string const &name, bool clientSync, uint64 defaultValue, ::std::vector<::HashedString > const &enumValues)
MCAPI void _addFloatProperty (::std::string const &name, bool clientSync, ::ExpressionNode &&defaultExpression, float rangeMin, float rangeMax)
MCAPI void _addFloatProperty (::std::string const &name, bool clientSync, float defaultValue, float rangeMin, float rangeMax)
MCAPI void _addIntProperty (::std::string const &name, bool clientSync, ::ExpressionNode &&defaultExpression, int rangeMin, int rangeMax)
MCAPI void _addIntProperty (::std::string const &name, bool clientSync, int defaultValue, int rangeMin, int rangeMax)
MCAPI void _addPropertyMetadata (::std::string const &name, bool clientSync, ::PropertyMetadata::ContainedType propertyType)
MCAPI::std::string const & _getFriendlyJsonTypeString (::PropertyMetadata::ContainedType type)
MCAPI bool _loadPropertyFromJson (::std::string const &name, ::Json::Value const &propertyNode, ::MolangVersion molangVersion, bool clientSync)
MCAPI void _reserveSpaceForTypes (::std::vector< uint64 > const &typeCounts)
MCAPI bool _validateDataType (::Json::Value const &value, ::PropertyMetadata::ContainedType type)
MCAPI bool getDefaultBoolValue (uint64 boolArrayIndex, ::RenderParams &renderParams) const
MCAPI uint64 getDefaultEnumIndexValue (uint64 enumIndexArrayIndex, ::RenderParams &renderParams, ::std::string const &propertyName) const
MCAPI float getDefaultFloatValue (uint64 floatArrayIndex, ::RenderParams &renderParams) const
MCAPI int getDefaultIntValue (uint64 intArrayIndex, ::RenderParams &renderParams) const
MCAPI::ListTag getNetworkSyncPropertyDescriptionsAsListTag () const
MCAPI void * $ctor ()
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI ::PropertyMetadata::ContainedType _getJsonPropertyType (::Json::Value const &typeNode)
static MCAPI bool isValidEnumEntry (::std::string const &entryValue)
static MCAPI ::std::shared_ptr<::PropertyGroup const > loadPropertiesFromJson (::Json::Value const &root, ::MolangVersion molangVersion)
static MCAPI_C ::std::shared_ptr<::PropertyGroup const > loadPropertiesFromNetworkSync (::ListTag const &propertiesTag)
static MCAPI uint64 const & MAX_ENUM_SIZE ()
static MCAPI uint64 const & MAX_ENUM_VALUE_SIZE ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::PropertyMetadata > > mPropertyMetadata
::ll::TypedStorage< 8, 56, ::brstd::flat_map< uint64, uint64, ::std::less< uint64 >, ::std::vector< uint64 >, ::std::vector< int64 > > > mPropertyIndexesByHash
::ll::TypedStorage< 8, 64, ::std::unordered_map<::std::string, uint64 > > mPropertyIndexesByString
::ll::TypedStorage< 8, 24, ::std::vector<::std::pair< int, int > > > mIntPropertyLimits
::ll::TypedStorage< 8, 24, ::std::vector<::std::pair< float, float > > > mFloatPropertyLimits
::ll::TypedStorage< 8, 24, ::std::vector<::std::vector<::HashedString > > > mStringEnumValues
::ll::TypedStorage< 8, 96, ::DefaultPropertyValuesmDefaultValues

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