Table of Contents

Class BossData

Namespace
RisingV.BossDrops.Data
Assembly
RisingV.BossDrops.dll

Represents a boss data entry in the game.

public class BossData : IData, IHasItemDrops<ItemDropData>
Inheritance
BossData
Implements
Inherited Members
Extension Methods

Constructors

BossData()

public BossData()

BossData(string)

public BossData(string name)

Parameters

name string

BossData(string, List<ItemDropData>)

public BossData(string name, List<ItemDropData> itemDrops)

Parameters

name string
itemDrops List<ItemDropData>

BossData(string, int)

public BossData(string name, int prefabGuid)

Parameters

name string
prefabGuid int

BossData(string, int, List<ItemDropData>)

public BossData(string name, int prefabGuid, List<ItemDropData> itemDrops)

Parameters

name string
prefabGuid int
itemDrops List<ItemDropData>

Properties

AssetName

Gets or sets the asset name of the boss.

public string AssetName { get; set; }

Property Value

string

ItemDrops

Gets or sets the list of item drops associated with the boss.

public List<ItemDropData> ItemDrops { get; set; }

Property Value

List<ItemDropData>

LootCompletionMode

Gets or sets the loot completion mode for the boss.

public LootCompletionMode LootCompletionMode { get; set; }

Property Value

LootCompletionMode

LootRollMode

Gets or sets the loot roll mode for the boss.

public LootRollMode LootRollMode { get; set; }

Property Value

LootRollMode

LootSelectionMode

Gets or sets the loot selection mode for the boss.

public LootSelectionMode LootSelectionMode { get; set; }

Property Value

LootSelectionMode

LootShuffleMode

Gets or sets the loot shuffle mode for the boss.

public LootShuffleMode LootShuffleMode { get; set; }

Property Value

LootShuffleMode

Name

Gets or sets the name of the boss.

public string Name { get; set; }

Property Value

string

NameHash

public int NameHash { get; }

Property Value

int

PrefabGuid

Gets or sets the GUID of the prefab associated with the boss.

public int PrefabGuid { get; set; }

Property Value

int

Methods

AddDrop(ItemDropData)

Adds a drop to the boss's item drops list.

public void AddDrop(ItemDropData drop)

Parameters

drop ItemDropData

The item drop to add.

Equals(BossData)

protected bool Equals(BossData other)

Parameters

other BossData

Returns

bool

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.

RemoveDrop(ItemDropData)

Removes a drop from the boss's item drops list.

public bool RemoveDrop(ItemDropData drop)

Parameters

drop ItemDropData

The item drop to remove.

Returns

bool

True if the drop was successfully removed; otherwise, false.

RemoveDrop(int)

Removes a drop from the boss's item drops list by item ID.

public bool RemoveDrop(int itemId)

Parameters

itemId int

The ID of the item to remove.

Returns

bool

True if the drop was successfully removed; otherwise, false.

RemoveDrop(string)

Removes a drop from the boss's item drops list by item name.

public bool RemoveDrop(string itemName)

Parameters

itemName string

The name of the item to remove.

Returns

bool

True if the drop was successfully removed; otherwise, false.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.