Table of Contents

Class MaaResource

Namespace
MaaFramework.Binding
Assembly
MaaFramework.Binding.Native.dll

A wrapper class providing a reference implementation for MaaFramework.Binding.Interop.Native.MaaResource.

public class MaaResource : MaaCommon, IMaaResource<nint>, IMaaResource, IMaaCommon, IMaaOption<ResourceOption>, IMaaPost, IMaaDisposableHandle<nint>, IMaaDisposable, IDisposable

Inheritance

Implements

Inherited Members

Extension Methods

Constructors

MaaResource()

Creates a MaaFramework.Binding.MaaResource instance.

MaaResource(params string[])

Creates a MaaFramework.Binding.MaaResource instance.

MaaResource(CheckStatusOption, params string[])

Creates a MaaFramework.Binding.MaaResource instance.

MaaResource(IEnumerable<string>)

Creates a MaaFramework.Binding.MaaResource instance.

MaaResource(CheckStatusOption, IEnumerable<string>)

Creates a MaaFramework.Binding.MaaResource instance.

Properties

Hash

Gets the hash string of the MaaFramework.Binding.IMaaResource.

IsLoaded

Gets whether the MaaFramework.Binding.IMaaResource is fully loaded.

NodeList

Gets the string of current node list.

Methods

AppendBundle(string)

Appends a job for loading bundle from path , could be called multiple times.

Clear<T>()

Clears all MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition registered in the MaaFramework.Binding.IMaaResource.

Clear(bool)

Clears the loaded resource.

GetNodeData(string, out string)

Gets the node data from the MaaFramework.Binding.IMaaResource by node name.

GetStatus(MaaJob)

Gets the current status of a MaaFramework.Binding.MaaJob.

OverrideNext(string, IEnumerable<string>)

Override the property field "next" in a node.

OverridePipeline(string)

Override a pipeline.

Register<T>(string, T)

Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaResource.

Register<T>(T)

Registers a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaResource.

ReleaseHandle()

When overridden in a derived class, executes the code required to free the handle.

SetOption<T>(ResourceOption, T)

Sets value to an option.

ToString()

Returns a string that represents the current object.

Unregister<T>(string)

Unregisters a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaResource.

Unregister<T>(T)

Unregisters a MaaFramework.Binding.Custom.IMaaCustomAction or MaaFramework.Binding.Custom.IMaaCustomRecognition in the MaaFramework.Binding.IMaaResource.

Wait(MaaJob)

Waits a MaaFramework.Binding.MaaJob.