-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix buhnautica
- Loading branch information
Showing
10 changed files
with
59 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
using System; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Runtime.Serialization; | ||
|
||
namespace SwarmControl.Models.Game; | ||
public class EnumDefinitionModel(Type enumType) | ||
{ | ||
public string Name { get; set; } = enumType.Name; | ||
public string[] Values { get; set; } = Enum.GetNames(enumType); // enumType.GetEnumNames(); // Nautilus only patches Enum.GetNames | ||
public string[] Values { get; set; } = enumType.GetFields(BindingFlags.Public | BindingFlags.Static) | ||
.Select(f => f.GetCustomAttribute<EnumMemberAttribute>() is { } customDisplayName | ||
? customDisplayName.Value | ||
: f.Name) | ||
.ToArray(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace SCHIZO.SwarmControl.Redeems.Enums; | ||
|
||
public enum AggressiveCreature | ||
{ | ||
Ermshark, | ||
[EnumMember(Value = "Lily Paddler")] | ||
LilyPaddler, | ||
Cryptosuchus, | ||
[EnumMember(Value = "Squid Shark")] | ||
SquidShark, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace SCHIZO.SwarmControl.Redeems.Enums; | ||
|
||
public enum CommonItems | ||
{ | ||
Salt, | ||
Quartz, | ||
Titanium, | ||
Copper, | ||
Silver, | ||
Lead, | ||
|
||
[EnumMember(Value = "Neuro fumo")] | ||
NeuroFumoItem, | ||
[EnumMember(Value = "Evil fumo")] | ||
EvilFumoItem, | ||
|
||
Gold, | ||
[EnumMember(Value = "Table Coral")] | ||
JeweledDiskPiece, | ||
[EnumMember(Value = "Ribbon Plant")] | ||
GenericRibbon, | ||
|
||
[EnumMember(Value = "Filtered Water")] | ||
FilteredWater, | ||
[EnumMember(Value = "Nutrient Block")] | ||
NutrientBlock | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
namespace SCHIZO.SwarmControl.Redeems.Enums; | ||
using System.Runtime.Serialization; | ||
|
||
namespace SCHIZO.SwarmControl.Redeems.Enums; | ||
|
||
public enum PassiveCreature | ||
{ | ||
Ermfish, | ||
Anneel, | ||
Tutel, | ||
[EnumMember(Value = "Arctic Peeper")] | ||
ArcticPeeper, | ||
Bladderfish, | ||
Boomerang, | ||
[EnumMember(Value = "Spinner Fish")] | ||
SpinnerFish, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters