Table of Contents

Class BossDatabase

Namespace
RisingV.BossDrops.Database
Assembly
RisingV.BossDrops.dll

Database for managing boss data.

public class BossDatabase : Database<int, BossData, BossDataSource, BossDataLoader>, IDatabase<int, BossData>, IDatabase, IDataCrud, IManageableLifecycle<DatabaseManager>, IManageableLifecycle, IReloadable, IManageable<DatabaseManager>, IManageable, IDataCrud<int, BossData>
Inheritance
BossDatabase
Implements
Inherited Members
Extension Methods

Constructors

BossDatabase()

Database for managing boss data.

public BossDatabase()

Properties

Log

protected override Logger Log { get; }

Property Value

Logger

Methods

Get(PrefabGUID)

Gets a boss by its Prefab GUID.

public BossData? Get(PrefabGUID prefabGuid)

Parameters

prefabGuid PrefabGUID

The Prefab GUID of the boss to retrieve.

Returns

BossData

The BossData if found; otherwise, null.

GetByEntity(Entity)

Gets a boss by its Entity.

public BossData? GetByEntity(Entity entity)

Parameters

entity Entity

The Entity of the boss to retrieve.

Returns

BossData

The BossData if found; otherwise, null.

GetByName(string)

Gets a boss by its name.

public BossData? GetByName(string name)

Parameters

name string

The name of the boss to retrieve.

Returns

BossData

The BossData if found; otherwise, null.

GetModelAndEntityByPrefabGuid(PrefabGUID, out BossData?, out Entity, bool)

Gets the model and entity for a boss by its Prefab GUID.

public bool GetModelAndEntityByPrefabGuid(PrefabGUID prefabGuid, out BossData? bossData, out Entity bossEntity, bool noWarnLogs = false)

Parameters

prefabGuid PrefabGUID

The Prefab GUID of the boss.

bossData BossData

The BossData if found; otherwise, null.

bossEntity Entity

The Entity representing the boss.

noWarnLogs bool

If true, suppresses warning logs when the boss entity is not found or is not a VBlood unit.

Returns

bool

True if the boss data and entity were successfully retrieved; otherwise, false.

Initialize(DatabaseManager, List<IPlugin>)

Initializes the lifecycle of the manager with a specific type.

public override void Initialize(DatabaseManager manager, List<IPlugin> plugins)

Parameters

manager DatabaseManager
plugins List<IPlugin>

RemoveByName(string)

Removes a boss by its name.

public BossData? RemoveByName(string name)

Parameters

name string

The name of the boss to remove.

Returns

BossData

The removed BossData if found; otherwise, null.

TryGetByEntity(Entity)

Attempts to get a boss by its Entity.

public BossData? TryGetByEntity(Entity entity)

Parameters

entity Entity

The Entity of the boss to retrieve.

Returns

BossData

The BossData if found; otherwise, null.