Skip to content

Commit cb27284

Browse files
committed
rename ConditionTypes -> ConditionType
1 parent 5527acd commit cb27284

File tree

3 files changed

+66
-66
lines changed

3 files changed

+66
-66
lines changed

Framework/Intersect.Framework.Core/GameObjects/Conditions/Condition.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Intersect.GameObjects.Events;
44

55
public partial class Condition
66
{
7-
public virtual ConditionTypes Type { get; }
7+
public virtual ConditionType Type { get; }
88

99
public bool Negated { get; set; }
1010

@@ -16,7 +16,7 @@ public partial class Condition
1616

1717
public partial class VariableIsCondition : Condition
1818
{
19-
public override ConditionTypes Type { get; } = ConditionTypes.VariableIs;
19+
public override ConditionType Type { get; } = ConditionType.VariableIs;
2020

2121
public VariableType VariableType { get; set; } = VariableType.PlayerVariable;
2222

@@ -27,7 +27,7 @@ public partial class VariableIsCondition : Condition
2727

2828
public partial class HasItemCondition : Condition
2929
{
30-
public override ConditionTypes Type { get; } = ConditionTypes.HasItem;
30+
public override ConditionType Type { get; } = ConditionType.HasItem;
3131

3232
public Guid ItemId { get; set; }
3333

@@ -53,21 +53,21 @@ public partial class HasItemCondition : Condition
5353

5454
public partial class ClassIsCondition : Condition
5555
{
56-
public override ConditionTypes Type { get; } = ConditionTypes.ClassIs;
56+
public override ConditionType Type { get; } = ConditionType.ClassIs;
5757

5858
public Guid ClassId { get; set; }
5959
}
6060

6161
public partial class KnowsSpellCondition : Condition
6262
{
63-
public override ConditionTypes Type { get; } = ConditionTypes.KnowsSpell;
63+
public override ConditionType Type { get; } = ConditionType.KnowsSpell;
6464

6565
public Guid SpellId { get; set; }
6666
}
6767

6868
public partial class LevelOrStatCondition : Condition
6969
{
70-
public override ConditionTypes Type { get; } = ConditionTypes.LevelOrStat;
70+
public override ConditionType Type { get; } = ConditionType.LevelOrStat;
7171

7272
public bool ComparingLevel { get; set; }
7373

@@ -82,7 +82,7 @@ public partial class LevelOrStatCondition : Condition
8282

8383
public partial class SelfSwitchCondition : Condition
8484
{
85-
public override ConditionTypes Type { get; } = ConditionTypes.SelfSwitch;
85+
public override ConditionType Type { get; } = ConditionType.SelfSwitch;
8686

8787
public int SwitchIndex { get; set; } //0 through 3
8888

@@ -91,28 +91,28 @@ public partial class SelfSwitchCondition : Condition
9191

9292
public partial class AccessIsCondition : Condition
9393
{
94-
public override ConditionTypes Type { get; } = ConditionTypes.AccessIs;
94+
public override ConditionType Type { get; } = ConditionType.AccessIs;
9595

9696
public Access Access { get; set; }
9797
}
9898

9999
public partial class TimeBetweenCondition : Condition
100100
{
101-
public override ConditionTypes Type { get; } = ConditionTypes.TimeBetween;
101+
public override ConditionType Type { get; } = ConditionType.TimeBetween;
102102

103103
public int[] Ranges { get; set; } = new int[2];
104104
}
105105

106106
public partial class CanStartQuestCondition : Condition
107107
{
108-
public override ConditionTypes Type { get; } = ConditionTypes.CanStartQuest;
108+
public override ConditionType Type { get; } = ConditionType.CanStartQuest;
109109

110110
public Guid QuestId { get; set; }
111111
}
112112

113113
public partial class QuestInProgressCondition : Condition
114114
{
115-
public override ConditionTypes Type { get; } = ConditionTypes.QuestInProgress;
115+
public override ConditionType Type { get; } = ConditionType.QuestInProgress;
116116

117117
public Guid QuestId { get; set; }
118118

@@ -123,14 +123,14 @@ public partial class QuestInProgressCondition : Condition
123123

124124
public partial class QuestCompletedCondition : Condition
125125
{
126-
public override ConditionTypes Type { get; } = ConditionTypes.QuestCompleted;
126+
public override ConditionType Type { get; } = ConditionType.QuestCompleted;
127127

128128
public Guid QuestId { get; set; }
129129
}
130130

131131
public partial class NoNpcsOnMapCondition : Condition
132132
{
133-
public override ConditionTypes Type { get; } = ConditionTypes.NoNpcsOnMap;
133+
public override ConditionType Type { get; } = ConditionType.NoNpcsOnMap;
134134

135135
public bool SpecificNpc { get; set; }
136136

@@ -139,21 +139,21 @@ public partial class NoNpcsOnMapCondition : Condition
139139

140140
public partial class GenderIsCondition : Condition
141141
{
142-
public override ConditionTypes Type { get; } = ConditionTypes.GenderIs;
142+
public override ConditionType Type { get; } = ConditionType.GenderIs;
143143

144144
public Gender Gender { get; set; } = Gender.Male;
145145
}
146146

147147
public partial class MapIsCondition : Condition
148148
{
149-
public override ConditionTypes Type { get; } = ConditionTypes.MapIs;
149+
public override ConditionType Type { get; } = ConditionType.MapIs;
150150

151151
public Guid MapId { get; set; }
152152
}
153153

154154
public partial class IsItemEquippedCondition : Condition
155155
{
156-
public override ConditionTypes Type { get; } = ConditionTypes.IsItemEquipped;
156+
public override ConditionType Type { get; } = ConditionType.IsItemEquipped;
157157

158158
public Guid ItemId { get; set; }
159159
}
@@ -166,7 +166,7 @@ public partial class HasFreeInventorySlots : Condition
166166
/// <summary>
167167
/// Defines the type of condition.
168168
/// </summary>
169-
public override ConditionTypes Type { get; } = ConditionTypes.HasFreeInventorySlots;
169+
public override ConditionType Type { get; } = ConditionType.HasFreeInventorySlots;
170170

171171
/// <summary>
172172
/// Defines the amount of inventory slots that need to be free to clear this condition.
@@ -197,7 +197,7 @@ public partial class InGuildWithRank : Condition
197197
/// <summary>
198198
/// Defines the type of condition
199199
/// </summary>
200-
public override ConditionTypes Type { get; } = ConditionTypes.InGuildWithRank;
200+
public override ConditionType Type { get; } = ConditionType.InGuildWithRank;
201201

202202
/// <summary>
203203
/// The guild rank the condition checks for as a minimum
@@ -213,7 +213,7 @@ public partial class MapZoneTypeIs : Condition
213213
/// <summary>
214214
/// Defines the type of condition.
215215
/// </summary>
216-
public override ConditionTypes Type { get; } = ConditionTypes.MapZoneTypeIs;
216+
public override ConditionType Type { get; } = ConditionType.MapZoneTypeIs;
217217

218218
/// <summary>
219219
/// Defines the map Zone Type to compare to.
@@ -259,7 +259,7 @@ public partial class StringVariableComparison : VariableComparison
259259

260260
public partial class CheckEquippedSlot : Condition
261261
{
262-
public override ConditionTypes Type { get; } = ConditionTypes.CheckEquipment;
262+
public override ConditionType Type { get; } = ConditionType.CheckEquipment;
263263

264264
public string Name { get; set; }
265265
}

Framework/Intersect.Framework.Core/GameObjects/Conditions/ConditionTypes.cs renamed to Framework/Intersect.Framework.Core/GameObjects/Conditions/ConditionType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Intersect.GameObjects.Events;
22

3-
public enum ConditionTypes
3+
public enum ConditionType
44
{
55
VariableIs = 0,
66

0 commit comments

Comments
 (0)