Class ObjectMaterialData
Represents material data applied to an object.
[NativeMarshalling(typeof(ObjectMaterialDataMarshaller))]
public record ObjectMaterialData : IEquatable<ObjectMaterialData>
- Inheritance
-
ObjectMaterialData
- Implements
- Inherited Members
Constructors
ObjectMaterialData(ObjectMaterialData)
protected ObjectMaterialData(ObjectMaterialData original)
Parameters
originalObjectMaterialData
ObjectMaterialData(int, byte, byte, byte, bool, Colour, Colour, string, string, MaterialType, bool)
Represents material data applied to an object.
public ObjectMaterialData(int Model, byte MaterialSize, byte FontSize, byte Alignment, bool Bold, Colour MaterialColour, Colour BackgroundColour, string Text, string Font, MaterialType Type, bool Used)
Parameters
ModelintMaterialSizebyteFontSizebyteAlignmentbyteBoldboolMaterialColourColourBackgroundColourColourTextstringFontstringTypeMaterialTypeUsedbool
Properties
Alignment
public byte Alignment { get; init; }
Property Value
BackgroundColour
public Colour BackgroundColour { get; init; }
Property Value
Bold
public bool Bold { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Font
public string Font { get; init; }
Property Value
FontColour
Gets the color of the font used in the material.
public Colour FontColour { get; }
Property Value
FontSize
public byte FontSize { get; init; }
Property Value
MaterialColour
public Colour MaterialColour { get; init; }
Property Value
MaterialSize
public byte MaterialSize { get; init; }
Property Value
Model
public int Model { get; init; }
Property Value
Text
public string Text { get; init; }
Property Value
Texture
Gets the texture name used in the material.
public string Texture { get; }
Property Value
Txd
Gets the texture dictionary (TXD) name used in the material.
public string Txd { get; }
Property Value
Type
public MaterialType Type { get; init; }
Property Value
Used
public bool Used { get; init; }
Property Value
Methods
Deconstruct(out int, out byte, out byte, out byte, out bool, out Colour, out Colour, out string, out string, out MaterialType, out bool)
public void Deconstruct(out int Model, out byte MaterialSize, out byte FontSize, out byte Alignment, out bool Bold, out Colour MaterialColour, out Colour BackgroundColour, out string Text, out string Font, out MaterialType Type, out bool Used)
Parameters
ModelintMaterialSizebyteFontSizebyteAlignmentbyteBoldboolMaterialColourColourBackgroundColourColourTextstringFontstringTypeMaterialTypeUsedbool
Equals(ObjectMaterialData?)
public virtual bool Equals(ObjectMaterialData? other)
Parameters
otherObjectMaterialData
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ObjectMaterialData?, ObjectMaterialData?)
public static bool operator ==(ObjectMaterialData? left, ObjectMaterialData? right)
Parameters
leftObjectMaterialDatarightObjectMaterialData
Returns
operator !=(ObjectMaterialData?, ObjectMaterialData?)
public static bool operator !=(ObjectMaterialData? left, ObjectMaterialData? right)
Parameters
leftObjectMaterialDatarightObjectMaterialData