Enum Utils

⭐ — (7 endorsements) 📥 404 downloads 📌 v1.0.5 📅 12/8/2023
⚪ Last updated 2024

By MegaPiggy · Miscellaneous

⬇ Download Mod Source: Nexus Mods ↗ 📅 Updated: 7/28/2024 📅 Created: 12/8/2023

🔍 Analysis

  • 🏆 #42 of 67 Miscellaneous mods in this game by downloads

📋 About This Mod

A utility library to help with creating, getting, and parsing Enums.

For feature requests or issues, go to my repo.

General Users

This mod is just a dependency for other mods, it doesn't add content by itself.

Recommended Install

Please use a mod manager. I recommend r2modman as the mod manager to use for Lethal Company.

Developer Quick-Start

Download the latest release from either the Thunderstore or Github.

Extract the zip and add a reference to the dll file of the mod in the IDE (Visual Studio, Rider, or etc) you use.

Enum Utilities

Getting Enums

Shortcuts for getting enums. There is various functions you can use.

Here are some of the examples.

public class ExampleModClass : BaseUnityPlugin

private void Start()

CauseOfDeath bludgeoning = EnumUtils. Parse<CauseOfDeath>("Bludgeoning");

if (EnumUtils. TryParse("Example", out CauseOfDeath example))

int numOfDeathCauses = EnumUtils. Count<CauseOfDeath>();

CauseOfDeath minDeathCause = EnumUtils. GetMinValue<CauseOfDeath>();

CauseOfDeath maxDeathCause = EnumUtils. GetMaxValue<CauseOfDeath>();

CauseOfDeath randomDeathCause = EnumUtils. GetRandom<CauseOfDeath>();

CauseOfDeath unusedDeathCauseValue = EnumUtils. GetFirstFreeValue<CauseOfDeath>();

string[] allDeathNames = EnumUtils. GetNames<CauseOfDeath>();

CauseOfDeath[] allDeathValues = EnumUtils. GetValues<CauseOfDeath>();

bool doesExampleDeathExist = EnumUtils. IsDefined<CauseOfDeath>("Example");

Type valueType = EnumUtils. GetUnderlyingType<CauseOfDeath>();

bool hasFlags = EnumUtils. IsPowerOfTwoEnum<CauseOfDeath>();

Creating Enums

You can use the EnumUtils class to create enums just like this.

public class ExampleModClass : BaseUnityPlugin

// Associate an unused enum value with a name of your choosing.

private static readonly CauseOfDeath Example = EnumUtils. Create<CauseOfDeath>("Example");

// Associate a specific enum value with a name of your choosing.

private static readonly CauseOfDeath Example2 = EnumUtils. Create<CauseOfDeath>("Example2", -1);

private void Awake()

Enum Holders

Another way to create enums.

Add the attribute to a class, run the RegisterAllEnumHolders func

🤖 AI-enhanced — based on mod data

Enum Utils is a small utility library by MegaPiggy that simplifies creating, getting, and parsing enums in modding projects. With 7 endorsements and 404 downloads, it's a niche tool for developers seeking to streamline enum handling. Last updated July 2024, it remains a lightweight resource for those who need it.

✨ Key Features

Provides utility functions for creating enums.
Provides utility functions for getting enums.
Provides utility functions for parsing enums.

📊 Pros & Cons

✅ Pros

  • Tiny and focused—does exactly what it says without bloat.
  • 404 downloads show some interest from the modding community.
  • Actively maintained as of July 2024.

⚠️ Cons

  • Very low endorsement count (7) suggests limited real-world testing.
  • No documentation or examples provided—you're on your own for integration.
  • Niche audience: only useful if you're a mod developer working with enums.
🎯 Is This For You?
For mod developers who need a lightweight helper for enum operations in their projects. If you're a player looking for gameplay changes, this isn't for you—it's a behind-the-scenes library.
📦 Install:Easy· Under 1 minute

💡 Beginner Tips

  • If you're using this in your own mod, make sure to reference it correctly in your project's build path.
  • Check the mod's file structure to see if it's a DLL or source code—this affects how you integrate it.
  • Since it's a utility library, test it with a simple enum first to ensure it works with your game's version.

📊 Mod Details

Game
Lethalcompany Mods
Author
MegaPiggy
Version
1.0.5
Downloads
404
Endorsements
7
Category
Miscellaneous
Created
12/8/2023
Updated
7/28/2024

🔧 How to Install Lethal Company Mods

Download from Nexus Mods.

📖 Full step-by-step install guide for Lethal Company →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Lethal Company commands, item IDs, and more.

Keep browsing — more Lethal Company mods await

📋 All Lethal Company Mods 🏆 Top 25 📂 More Miscellaneous 👤 More by MegaPiggy 🔎 Similar Mods 🌐 Best Miscellaneous (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods