Changed "Unused" category to "Build Off" in parameter enum

This commit is contained in:
MattN-L
2025-03-01 19:31:00 -05:00
parent 0106df06db
commit deda1e0d64
2 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ namespace PckStudio.FileFormats
Battle,
Tumble,
Glide,
Unused,
BuildOff,
}
public enum EAudioParameterType : int
@@ -110,7 +110,7 @@ namespace PckStudio.FileFormats
public AudioCategory GetCategory(AudioCategory.EAudioType category)
{
if (category < AudioCategory.EAudioType.Overworld ||
category > AudioCategory.EAudioType.Unused)
category > AudioCategory.EAudioType.BuildOff)
throw new InvalidCategoryException(nameof(category));
return _categories[(int)category];
}
@@ -132,7 +132,7 @@ namespace PckStudio.FileFormats
public bool AddCategory(AudioCategory.EAudioParameterType parameterType, AudioCategory.EAudioType category, string name = "")
{
if (category < AudioCategory.EAudioType.Overworld ||
category > AudioCategory.EAudioType.Unused)
category > AudioCategory.EAudioType.BuildOff)
throw new InvalidCategoryException(nameof(category));
bool exists = HasCategory(category);
if (!exists)

View File

@@ -54,7 +54,7 @@ namespace PckStudio.Forms.Editor
private string GetCategoryFromId(PckAudioFile.AudioCategory.EAudioType categoryId)
=> categoryId >= PckAudioFile.AudioCategory.EAudioType.Overworld &&
categoryId <= PckAudioFile.AudioCategory.EAudioType.Unused
categoryId <= PckAudioFile.AudioCategory.EAudioType.BuildOff
? Categories[(int)categoryId]
: "Not valid";