-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBossData.cs
More file actions
51 lines (45 loc) · 1.46 KB
/
Copy pathBossData.cs
File metadata and controls
51 lines (45 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using CounterStrikeSharp.API.Core;
namespace EntBossHP
{
public enum BossType
{
Invalid = -1,
Breakable = 0,
MathCounter = 1,
HPBar = 2,
}
public class BossData
{
public string BossName { get; set; }
public int Health { get; set; }
public int MaxHealth { get; set; }
public int LastHP { get; set; }
public double LastHit { get; set; }
public BossType Type { get; set; }
}
public class BreakableBoss : BossData
{
public CEntityInstance BreakableEntity { get; set; }
public string BreakableEntityName { get; set; }
}
public class MathCounterBoss : BossData
{
public CEntityInstance MathCounterEntity { get; set; }
public int MathCounterHitMode { get; set; } = -1;
public string MathCounterName { get; set; }
// More data
public int MathCounterStartValue { get; set; }
public int MathCounterMaxValue { get; set; }
public int MathCounterMinValue { get; set; }
}
public class HPBarBoss : MathCounterBoss
{
public CEntityInstance IteratorEntity { get; set; }
public string IteratorName { get; set; }
public int IteratorHitMode { get; set; } = -1;
public float IteratorValue { get; set; }
public CEntityInstance BackUpEntity { get; set; }
public string BackupName { get; set; }
public float BackupValue { get; set; }
}
}