Extensions/ResourceIO/include/SAMPCpp/Ext/ResourceIO/MapObjectMaterialSerializer.hpp
/// <summary>
/// Initializes a new instance of the <see cref="IMapObjectMaterialSerializer"/> struct.
/// </summary>
/// <param name="material_">The serialized material.</param>

Initializes a new instance of the  struct.

The serialized material.
Initializes a new instance of the struct . The serialized material .
IMapObjectMaterialSerializer(IMapObject::IMaterial const& material_, Uint8 materialIndex_)
		:
		material{ material_ },
		materialIndex{ materialIndex_ }
	{
		assert(materialIndex_ <= IMapObject::MaxMaterialCount);
	}
IMapObjectMaterialSerializer ( IMapObject :: IMaterial const & material_ , Uint8 materialIndex_ ) : material { material_ } , materialIndex { materialIndex_ } { assert ( materialIndex_ <= IMapObject :: MaxMaterialCount ) ; }
<summary>
Initializes a new instance of the <see cref="IMapObjectMaterialSerializer"/> struct.
<summary > Initializes a new instance of the <see cref = " IMapObjectMaterialSerializer " / > struct .
// # Assertion note: // Index of the material cannot be greater than IMapObject::MaxMaterialCount, fix your code.