Class BossData
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
stringitemDrops
List<ItemDropData>
BossData(string, int)
public BossData(string name, int prefabGuid)
Parameters
BossData(string, int, List<ItemDropData>)
public BossData(string name, int prefabGuid, List<ItemDropData> itemDrops)
Parameters
name
stringprefabGuid
intitemDrops
List<ItemDropData>
Properties
AssetName
Gets or sets the asset name of the boss.
public string AssetName { get; set; }
Property Value
ItemDrops
Gets or sets the list of item drops associated with the boss.
public List<ItemDropData> ItemDrops { get; set; }
Property Value
LootCompletionMode
Gets or sets the loot completion mode for the boss.
public LootCompletionMode LootCompletionMode { get; set; }
Property Value
LootRollMode
Gets or sets the loot roll mode for the boss.
public LootRollMode LootRollMode { get; set; }
Property Value
LootSelectionMode
Gets or sets the loot selection mode for the boss.
public LootSelectionMode LootSelectionMode { get; set; }
Property Value
LootShuffleMode
Gets or sets the loot shuffle mode for the boss.
public LootShuffleMode LootShuffleMode { get; set; }
Property Value
Name
Gets or sets the name of the boss.
public string Name { get; set; }
Property Value
NameHash
public int NameHash { get; }
Property Value
PrefabGuid
Gets or sets the GUID of the prefab associated with the boss.
public int PrefabGuid { get; set; }
Property Value
Methods
AddDrop(ItemDropData)
Adds a drop to the boss's item drops list.
public void AddDrop(ItemDropData drop)
Parameters
drop
ItemDropDataThe item drop to add.
Equals(BossData)
protected bool Equals(BossData other)
Parameters
other
BossData
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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
ItemDropDataThe 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
intThe 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
stringThe 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.