Table of Contents

Class BasePart

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll
[DataContract]
[DataSerializer(typeof(BasePartDataSerializer))]
public sealed class BasePart : IEquatable<BasePart>
Inheritance
BasePart
Implements

Constructors

BasePart(AssetReference, Guid, Guid)

public BasePart(AssetReference basePartAsset, Guid basePartId, Guid instanceId)

Parameters

basePartAsset AssetReference
basePartId Guid
instanceId Guid

Properties

BasePartAsset

[DataMember(10)]
public AssetReference BasePartAsset { get; set; }

Property Value

AssetReference

BasePartId

[DataMember(20)]
public Guid BasePartId { get; init; }

Property Value

Guid

InstanceId

[DataMember(30)]
public Guid InstanceId { get; init; }

Property Value

Guid

Methods

Equals(BasePart)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BasePart other)

Parameters

other BasePart

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ResolvePart(PackageSession)

public IIdentifiable ResolvePart(PackageSession session)

Parameters

session PackageSession

Returns

IIdentifiable

Operators

operator ==(BasePart, BasePart)

public static bool operator ==(BasePart left, BasePart right)

Parameters

left BasePart
right BasePart

Returns

bool

operator !=(BasePart, BasePart)

public static bool operator !=(BasePart left, BasePart right)

Parameters

left BasePart
right BasePart

Returns

bool