-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBossConfig.cs
More file actions
90 lines (66 loc) · 2.75 KB
/
Copy pathBossConfig.cs
File metadata and controls
90 lines (66 loc) · 2.75 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
using System.Text.Json.Serialization;
namespace EntBossHP
{
public class BossConfig
{
[JsonPropertyName("Breakable")]
public List<BreakableConfig> BreakableList { get; set; } = [];
[JsonPropertyName("MathCounter")]
public List<MathCounterConfig> MathCounterList { get; set; } = [];
[JsonPropertyName("HPBar")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[Obsolete("HPBar is deprecated. Use MathCounter with health_segment_counter instead.")]
public List<HPBarConfig>? HPBarList { get; set; }
}
public class BreakableConfig
{
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
[JsonPropertyName("enabled")]
public bool Enabled { get; set; } = true;
[JsonPropertyName("breakable")]
public string Breakable { get; set; } = string.Empty;
[JsonPropertyName("health_segment_counter")]
public string? HealthSegmentCounter { get; set; }
[JsonPropertyName("health_segment_counter_mode")]
public int HealthSegmentCounterMode { get; set; } = 1;
[JsonPropertyName("hp_offset")]
public int HpOffset { get; set; } = 0;
}
public class MathCounterConfig
{
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
[JsonPropertyName("enabled")]
public bool Enabled { get; set; } = true;
[JsonPropertyName("mathcounter")]
public string MathCounter { get; set; } = string.Empty;
[JsonPropertyName("mathcounter_mode")]
public int MathCounterMode { get; set; } = 1;
[JsonPropertyName("health_segment_counter")]
public string? HealthSegmentCounter { get; set; }
[JsonPropertyName("health_segment_counter_mode")]
public int HealthSegmentCounterMode { get; set; } = 1;
[JsonPropertyName("hp_offset")]
public int HpOffset { get; set; } = 0;
}
public class HPBarConfig
{
[JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
[JsonPropertyName("enabled")]
public bool Enabled { get; set; } = true;
[JsonPropertyName("mathcounter")]
public string MathCounter { get; set; } = string.Empty;
[JsonPropertyName("mathcounter_mode")]
public int MathCounterMode { get; set; } = 1;
[JsonPropertyName("iterator")]
public string Iterator { get; set; } = string.Empty;
[JsonPropertyName("iterator_mode")]
public int IteratorMode { get; set; } = 1;
[JsonPropertyName("backup")]
public string Backup { get; set; } = string.Empty;
[JsonPropertyName("hp_offset")]
public int HpOffset { get; set; } = 0;
}
}