Class Boss
The base class for all bosses
Inherited Members
Namespace: WeaverCore.Features
Assembly: WeaverCore.dll
Syntax
[RequireComponent(typeof(EntityHealth))]
public class Boss : Enemy
Properties
| Edit this page View SourceBossStage
The current stage/phase the boss is at. The boss begins on boss stage 1 and is incremented every time the boss is stunned
Declaration
public int BossStage { get; set; }
Property Value
Type | Description |
---|---|
int |
Difficulty
The currently set difficulty of the boss scene
Declaration
public static BossDifficulty Difficulty { get; set; }
Property Value
Type | Description |
---|---|
BossDifficulty |
InGodHomeArena
Whether the boss is in a god home arena or not
Declaration
public static bool InGodHomeArena { get; }
Property Value
Type | Description |
---|---|
bool |
InPantheon
Whether the boss is currently in a pantheon
Declaration
public static bool InPantheon { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceAddStunMilestone(int)
Adds a health milestone that will stun the boss when it is reached.
Declaration
public void AddStunMilestone(int health)
Parameters
Type | Name | Description |
---|---|---|
int | health | The health milestone. When the boss's health goes below this value, the stun will trigger |
Awake()
Called when the boss awakes
Declaration
protected override void Awake()
Overrides
| Edit this page View SourceEndBossBattle(float)
Triggers the ending transition to play
Declaration
public static void EndBossBattle(float delay = 0)
Parameters
Type | Name | Description |
---|---|---|
float | delay | The delay before the transition is played |
OnDeath()
Called when the boss dies
Declaration
protected override void OnDeath()
Overrides
| Edit this page View SourceOnStun()
Called when the boss is stunned
Declaration
protected virtual void OnStun()
Stun()
Stuns the boss and moves it to the next stage
Declaration
public void Stun()