Parkitect Mod Community

Parkitect Mod Community

  • Documentation
  • Blog

›Modding

Starter

  • Starter

Modding

  • IMod Interface
  • Logging
  • Debugging
  • GitHub for beginners
  • Parkitool

Models And Assets

  • Models and Assets
  • Asset Bundle For Beginners
  • Recolorable Objects

The IMod Interface

IMod Interface

The IMod interface can be found in(Game Directory)/Parkitect_Data/Managed/Assembly-CSharp.dll and looks roughly like this:

/// <summary>
///     An interface for user made mods.
/// </summary>
public interface IMod
{
    /// <summary>
    ///     Called to indicate this instance should load its logic.
    ///     This method is called during the loading routine of a savegame or a fresh game.
    /// </summary>
    void onEnabled();

    /// <summary>
    ///     Called to indicate this instance should unload its logic.
    ///     This method is called before the game quits.
    /// </summary>
    void onDisabled();

    /// <summary>
    ///     Gets the name of this instance.
    /// </summary>
    string Name { get; }

    /// <summary>
    ///     Gets the description of this instance.
    /// </summary>
    string Description { get; }

    /// <summary>
    ///     Gets an unique identifier of this mod.
    /// <summary>
    string Identifier{ get; }
}
← StarterLogging →
  • IMod Interface
Parkitect Mod Community
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar
Facebook Open Source
Copyright © 2020 Your Name or Your Company Name