Skip to content

Interface ISourceResolver

Definition

Namespace: StardewUI.Framework.Content
Assembly: StardewUI.dll

Provides a method to connect a parsed Document back to the mod that provided it.

public interface ISourceResolver

Members

Methods

Name Description
TryGetProvidingModId(Document, String) Attempts to determine which mod is the originator of some markup document.

Details

Methods

TryGetProvidingModId(Document, String)

Attempts to determine which mod is the originator of some markup document.

bool TryGetProvidingModId(StardewUI.Framework.Dom.Document document, out System.String modId);
Parameters

document   Document
The markup document.

modId   string
Holds the StardewModdingAPI.IManifest.UniqueID of the originating mod, if the method returns true, otherwise null.

Returns

Boolean

true if the document source was successfully resolved, otherwise false.