ItemId

Assembly: ModLoader.Framework.dll

Namespace: ModLoader.Framework

Inherits from: System.Attribute

Description

This is the attribute that you put on your VtolMod class. This string needs to be unique between all mods, because it is used as the harmony patch ID.

Source Code

Constructors

public ItemId(string uniqueValue)

Properties

UniqueValue The value that is used when creating your harmony patch

Example

using ModLoader.Framework; using ModLoader.Framework.Attributes; namespace Docs; [ItemId("docs.vtolmod-example")] public class Main : VtolMod { // Gets called when your mod is loaded public void Awake() { Debug.Log("Hello World!"); } // Gets called when your mod is unloaded public override void UnLoad() { Debug.Log("Bye World!"); } }