Terminal Clock
A Terminal Clock

от MegaPiggy
Библиотека, помогающая создавать и получать Enums
EnumUtils — мод для Lethal Company (Летал Компани) от автора MegaPiggy. Библиотека, помогающая создавать и получать Enums
Его скачали 1,1 млн раз: это 197-е место среди модов Lethal Company в нашем каталоге, редкость — «редкий» (топ-50% по скачиваниям). Мод давно не обновлялся — проверьте совместимость с текущей версией игры, актуальная версия — 1.0.5.
Для работы ему нужны: BepInExPack.
Текст автора на языке оригинала
A library with utilities for dynamically creating and getting Enums.
For feature requests or issues, go to my repo.
This mod is just a dependency for other mods, it doesn't add content by itself.
Please use a mod manager. I recommend r2modman as the mod manager to use for Lethal Company.
Download the latest release from either the Thunderstore or the Releases.
Extract the zip and add a reference to the dll file of the mod in the IDE (Visual Studio, Rider, or etc) you use.
Shortcuts for getting enums. There is various functions you can use. Here are some of the examples.
[BepInPlugin(modGUID, modName, modVersion)]
public class ExampleModClass : BaseUnityPlugin
{
private void Start()
{
CauseOfDeath bludgeoning = EnumUtils.Parse("Bludgeoning");
if (EnumUtils.TryParse("Example", out CauseOfDeath example))
{
}
int numOfDeathCauses = EnumUtils.Count();
CauseOfDeath minDeathCause = EnumUtils.GetMinValue();
CauseOfDeath maxDeathCause = EnumUtils.GetMaxValue();
CauseOfDeath randomDeathCause = EnumUtils.GetRandom();
CauseOfDeath unusedDeathCauseValue = EnumUtils.GetFirstFreeValue();
string[] allDeathNames = EnumUtils.GetNames();
CauseOfDeath[] allDeathValues = EnumUtils.GetValues();
bool doesExampleDeathExist = EnumUtils.IsDefined("Example");
Type valueType = EnumUtils.GetUnderlyingType();
bool hasFlags = EnumUtils.IsPowerOfTwoEnum();
}
}
You can use the EnumUtils class to create enums just like this.
[BepInPlugin(modGUID, modName, modVersion)]
public class ExampleModClass : BaseUnityPlugin
{
// Associate an unused enum value with a name of your choosing.
private static readonly CauseOfDeath Example = EnumUtils.Create("Example");
// Associate a specific enum value with a name of your choosing.
private static readonly CauseOfDeath Example2 = EnumUtils.Create("Example2", -1);
private void Awake()
{
}
}
Another way to create enums.
Add the [EnumHolder] attribute to a class, run the RegisterAllEnumHolders function, and any static enum fields will have an enum value created with the name of the field. It'll select any unused enum value to be associated with that name (or if you specify a value it'll use that one).
using System.Reflection;
[BepInPlugin(modGUID, modName, modVersion)]
public class ExampleModClass : BaseUnityPlugin
{
private void Awake()
{
EnumUtils.RegisterAllEnumHolders(Assembly.GetExecutingAssembly());
}
}
[EnumHolder]
public static class ExampleEnumHolderClass
{
public static readonly CauseOfDeath Example;
public static readonly CauseOfDeath Example2 = (CauseOfDeath)-1;
}В r2modman ставится автоматически
Файл скачивается с официального сервера Thunderstore, без перезаливов и сторонних установщиков
Подробная инструкция для Lethal CompanyВставьте значок в описание на Thunderstore, в README или в Discord — русскоязычные игроки сразу попадут на страницу с переводом и инструкцией.
[](https://modka.app/lethal-company/megapiggy-enumutils/)<a href="https://modka.app/lethal-company/megapiggy-enumutils/"><img src="https://modka.app/badge.png" alt="Описание на русском — Модка" height="44"></a>[url=https://modka.app/lethal-company/megapiggy-enumutils/]Описание на русском — Модка[/url]Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру Lethal Company. Создайте профиль — так моды не смешаются с чистой версией игры. Найдите «EnumUtils» во вкладке Online и нажмите Download — BepInEx и все зависимости подтянутся сами. Нажмите «Start modded» — игра запустится с модами. Для мультиплеера всем игрокам нужен одинаковый набор модов: в r2modman профиль можно экспортировать кодом и отправить друзьям.
Файл скачивается с официального сервера Thunderstore, куда его загрузил MegaPiggy. Мы не перезаливаем и не изменяем моды.
Автор не указал, клиентский это мод или серверный. Безопаснее, чтобы одинаковый набор модов был у всех игроков в лобби: проще всего поделиться профилем r2modman.
Установите вместе с ним: BepInExPack. В менеджере модов зависимости подтягиваются автоматически.
26 июля 2024, актуальная версия — 1.0.5. Это больше года назад: перед установкой проверьте, работает ли мод на текущей версии игры.
A Terminal Clock
Настройте внешний вид часов и когда вы сможете их увидеть
Сложность настройки системы погоды в Летальной компании.
Позволяет легко перезапустить игру с помощью команды.
Позволяет купить дробовик и патроны из терминала
Все мои исправления в одном моде