跳到主要内容
版本:0.2.4

Interface IWukongFileApi

Namespace: WukongMp.Sdk.Api
Assembly: WukongMp.Sdk.dll

Provides methods related to manipulating files for Wukong mods, such as save files.

public interface IWukongFileApi

Methods

GetModDirectory<T>()

Get the absolute path to the mod's directory. Useful for finding files packaged with the mod.

string GetModDirectory<T>() where T : ModBase

Returns

string

The absolute path to the mod's directory.

Type Parameters

T

Pass the type of your mod's entry point. Used to find the mod's assembly and thus its directory.