Struct AssetPart
A part asset contained by an asset that is IAssetComposite.
[DataContract("AssetPart")]
[Obsolete("This struct might be removed soon")]
public struct AssetPart : IEquatable<AssetPart>
- Implements
- Inherited Members
Constructors
AssetPart(Guid, BasePart, Action<BasePart>)
public AssetPart(Guid partId, BasePart basePart, Action<BasePart> baseUpdater)
Parameters
Fields
Base
Base asset identifier.
public readonly BasePart Base
Field Value
PartId
Asset identifier.
public readonly Guid PartId
Field Value
Methods
Equals(AssetPart)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AssetPart other)
Parameters
other
AssetPartAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
UpdateBase(BasePart)
public void UpdateBase(BasePart newBase)
Parameters
newBase
BasePart
Operators
operator ==(AssetPart, AssetPart)
public static bool operator ==(AssetPart left, AssetPart right)
Parameters
Returns
operator !=(AssetPart, AssetPart)
public static bool operator !=(AssetPart left, AssetPart right)