Table of Contents

Class EquippableDataComponent

Namespace
Obsidian.API.Inventory.DataComponents
Assembly
Obsidian.API.dll
public sealed record EquippableDataComponent : IDataComponent, IEquatable<EquippableDataComponent>
Inheritance
EquippableDataComponent
Implements
Inherited Members

Properties

AllowedEntities

public List<int>? AllowedEntities { get; set; }

Property Value

List<int>

AssetId

public EquipmentAssets? AssetId { get; set; }

Property Value

EquipmentAssets?

CameraOverlay

public string? CameraOverlay { get; set; }

Property Value

string

DamageOnHurt

public bool DamageOnHurt { get; set; }

Property Value

bool

Dispensable

public bool Dispensable { get; set; }

Property Value

bool

EquipSound

public required SoundEvent EquipSound { get; set; }

Property Value

SoundEvent

Identifier

public string Identifier { get; }

Property Value

string

Slot

public required EquipmentSlot Slot { get; set; }

Property Value

EquipmentSlot

Swappable

public bool Swappable { get; set; }

Property Value

bool

Type

public DataComponentType Type { get; }

Property Value

DataComponentType

Methods

Equals(EquippableDataComponent?)

public bool Equals(EquippableDataComponent? other)

Parameters

other EquippableDataComponent

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Read(INetStreamReader)

public void Read(INetStreamReader reader)

Parameters

reader INetStreamReader

ToString()

public override string ToString()

Returns

string

Write(INetStreamWriter)

public void Write(INetStreamWriter writer)

Parameters

writer INetStreamWriter

Operators

operator ==(EquippableDataComponent?, EquippableDataComponent?)

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

Parameters

left EquippableDataComponent
right EquippableDataComponent

Returns

bool

operator !=(EquippableDataComponent?, EquippableDataComponent?)

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

Parameters

left EquippableDataComponent
right EquippableDataComponent

Returns

bool