DNFC.Mods.Library 1.0.5

dotnet add package DNFC.Mods.Library --version 1.0.5
                    
NuGet\Install-Package DNFC.Mods.Library -Version 1.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DNFC.Mods.Library" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DNFC.Mods.Library" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="DNFC.Mods.Library" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DNFC.Mods.Library --version 1.0.5
                    
#r "nuget: DNFC.Mods.Library, 1.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DNFC.Mods.Library@1.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DNFC.Mods.Library&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=DNFC.Mods.Library&version=1.0.5
                    
Install as a Cake Tool

DNFC_Redux_Library

A lightweight shared utility library for MelonLoader mods targeting Definitely Not Fried Chicken (Unity / IL2CPP).

This library centralizes commonly used state flags and provides convenient access to GameObjecst, making it easier to build modular, maintainable DNFC mods.


🎯 Target Game

This library is built specifically for Definitely Not Fried Chicken

📦 Purpose

When developing multiple mods or a modular system for DNFC, repeated logic can become duplicated or messy:

  • Determining if the player is in-game or in the main menu
  • Checking if your mod has initialized
  • Finding and storing references to important GameObjects

DNFC_Redux_Library provides a shared static data layer (SharedData) and a clean API (Library) to standardize this behavior across mods.

Install Instructions

<br>

Don't know how to install? Review the information below

MelonLoader

  • Download MelonLoader.Installer.exe
  • Run MelonLoader.Installer.exe
  • Click the select button.
  • Select DNFC.exe in your Game's Installation Folder.
  • Uncheck Latest and select version v0.7.1 from the Drop-Down List.
  • Once the installation is successful, open the game through Steam/Epic Games.
  • Place DNFC_Redux_Library.dll into the newly created Mods folder inside the Game's Installation Folder.

Usage

using DNFC_Redux_Library;
using MelonLoader;
using Mod_Example;

[assembly: MelonInfo(typeof(Mod), "MOD_NAME", "1.0.0", "MOD_AUTHOR")]
[assembly: MelonGame("Dope Games", "DNFC")]
namespace Mod_Example
{
    public class Mod : MelonMod
    {
        static Library DNFC_Lib = new Library();
    }
}

Game Properties

<br>

Functions that handle the in-game properties

<br>

  • IsInGame() > bool
    • Returns if the player is in the game
  • SetIsInGame(bool inGame) > void
    • Sets if the player is in the game
  • IsInLoading() > bool
    • Returns if the player is in the loading screen
  • SetIsInLoading(bool inLoading) > void
    • Sets if the player is in the loading screen
  • IsInMainMenu() > bool
    • Returns if the player is in the main menu
  • SetIsInMainMenu(bool inMainMenu) > void
    • Sets if the plyaer is in the main menu
  • IsInitialized() > bool
    • Returns if the mod has been intialized
  • SetIsInitialized(bool initialized) > void
    • Sets if the mod has been initalized

Game Objects

<br>

Functions that handle the in-game objects

<br>

  • FindSettingsManager() > void
    • Finds and sets the SettingsManager GameObject
  • GetSettingsManager() > GameObject
    • Returns the SettingsManager GameObject

Debug

<br>

Functions that handle debugging for developers

<br>

  • GetActiveInHierarchy(GameObject obj) > bool
    • Returns if obj is active in the scene, throws Error if provided GameObject is null
Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 92 2/18/2026
1.0.4 79 2/18/2026
1.0.3 86 2/18/2026
1.0.2 95 2/16/2026
1.0.1 88 2/15/2026
1.0.0 89 2/15/2026