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.
- Loaded
-
Gets whether the MaaFramework.Binding.IMaaResource is fully loaded.
- TaskList
-
Gets the string of current task list.
Methods
- AppendPath(string)
-
Appends a job for loading resource 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)
-
Clear the loaded resource paths.
- GetStatus(MaaJob)
-
Gets the current status of a MaaFramework.Binding.MaaJob.
- 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.