Table of Contents

Class ModDefinition

Namespace
GrindFest
Assembly
GrindFest.dll

Mod manifest deserialized from mod.json. Required in every mod folder for Workshop publishing and mod browser display.

[Serializable]
public class ModDefinition
Inheritance
object
ModDefinition

Fields

Author

Author display name.

Content

Well-known content folders that exist in this mod.

Description

Human-readable description shown in mod browser.

FolderPath

Full path to the mod folder on disk.

IsWorkshop

Whether this mod was loaded from the Steam Workshop folder (read-only).

Name

Unique mod name (also used as folder name).

PublisherSteamId

Steam ID of the original publisher. Loaded from .workshop.json.

Tags

Tags for filtering in mod browser (e.g. "ui", "story", "scripts").

Version

Semantic version string (e.g. "1.0.0").

WorkshopId

Steam Workshop item ID (0 if local-only). Loaded from .workshop.json.

Properties

QualifiedName

Identity key used for de-duplication: "Author/Name" when Author is set, otherwise just Name. Two mods by different authors can share the same Name without colliding.

Methods

IncrementBuildVersion()

Increment the patch (last) component of the semantic Version string. E.g. "1.0.0" → "1.0.1", "2.3" → "2.3.1", null → "0.0.1".

LoadFromFolder(string)

Load a ModDefinition from a mod.json file in the given folder. Returns null if mod.json doesn't exist or is invalid.

Save()

Save this ModDefinition to mod.json in FolderPath.