Table of Contents

Class ObjectMaterialData

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

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

original ObjectMaterialData

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

Model int
MaterialSize byte
FontSize byte
Alignment byte
Bold bool
MaterialColour Colour
BackgroundColour Colour
Text string
Font string
Type MaterialType
Used bool

Properties

Alignment

public byte Alignment { get; init; }

Property Value

byte

BackgroundColour

public Colour BackgroundColour { get; init; }

Property Value

Colour

Bold

public bool Bold { get; init; }

Property Value

bool

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Font

public string Font { get; init; }

Property Value

string

FontColour

Gets the color of the font used in the material.

public Colour FontColour { get; }

Property Value

Colour

FontSize

public byte FontSize { get; init; }

Property Value

byte

MaterialColour

public Colour MaterialColour { get; init; }

Property Value

Colour

MaterialSize

public byte MaterialSize { get; init; }

Property Value

byte

Model

public int Model { get; init; }

Property Value

int

Text

public string Text { get; init; }

Property Value

string

Texture

Gets the texture name used in the material.

public string Texture { get; }

Property Value

string

Txd

Gets the texture dictionary (TXD) name used in the material.

public string Txd { get; }

Property Value

string

Type

public MaterialType Type { get; init; }

Property Value

MaterialType

Used

public bool Used { get; init; }

Property Value

bool

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

Model int
MaterialSize byte
FontSize byte
Alignment byte
Bold bool
MaterialColour Colour
BackgroundColour Colour
Text string
Font string
Type MaterialType
Used bool

Equals(ObjectMaterialData?)

public virtual bool Equals(ObjectMaterialData? other)

Parameters

other ObjectMaterialData

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ObjectMaterialData?, ObjectMaterialData?)

public static bool operator ==(ObjectMaterialData? left, ObjectMaterialData? right)

Parameters

left ObjectMaterialData
right ObjectMaterialData

Returns

bool

operator !=(ObjectMaterialData?, ObjectMaterialData?)

public static bool operator !=(ObjectMaterialData? left, ObjectMaterialData? right)

Parameters

left ObjectMaterialData
right ObjectMaterialData

Returns

bool