1.2 Atrybut [BepInPlugin] i metadane modyfikacji
The [BepInPlugin] Attribute
Every BepInEx plugin starts with the [BepInPlugin] attribute to specify the mod's unique GUID, Name, and Version:
csharp
using BepInEx;
using BepInEx.IL2CPP;
[BepInPlugin("top.hanaverse.trainer", "Hana IL2CPP Trainer", "1.0.0")]
public class Plugin : BasePlugin {
public override void Load() {
Log.LogInfo("Plugin loaded into IL2CPP domain!");
}
}
Requirements:
- GUID: A unique identifier like
com.author.modnameortop.hanaverse.trainer. - Name: Human-readable name displayed in the console.
- Version: Semantic version (e.g.
1.0.0).
Praktyczne laboratoria w chmurze
Opanuj Pythona, C#, C++ i modding gier dzięki wbudowanym laboratoriom Cloud Labs i automatycznemu ocenianiu.