Class MaaContext
- Namespace
- MaaFramework.Binding
- Assembly
- MaaFramework.Binding.Native.dll
A wrapper class providing a reference implementation for MaaFramework.Binding.Interop.Native.MaaContext.
public class MaaContext : IMaaContext<nint>, IMaaContext, ICloneable, IEquatable<MaaContext>, IEqualityComparer<MaaContext>Inheritance
Implements
Inherited Members
Constructors
- MaaContext(nint)
-
Creates a MaaFramework.Binding.MaaContext instance.
- MaaContext(nint, MaaTasker)
-
Creates a MaaFramework.Binding.MaaContext instance.
Properties
- Handle
-
Gets or initializes a MaaContextHandle.
- IsCancellationRequested
-
Gets whether cancellation has been requested for this context.
- TaskJob
-
Gets the task job from the MaaFramework.Binding.IMaaContext.
- Tasker
-
Gets the tasker from the MaaFramework.Binding.IMaaContext.
Methods
- ClearHitCount(string)
-
Clears the hit count of a node.
- Clone()
-
Creates a new MaaFramework.Binding.IMaaContext that is a deep copy of the current instance.
- Equals(MaaContext?)
-
Indicates whether the current object is equal to another object of the same type.
- Equals(object?)
-
Determines whether the specified object is equal to the current object.
- Equals(MaaContext?, MaaContext?)
-
Determines whether the specified objects are equal.
- GetAnchor(string, out string)
-
Gets the node name from an anchor.
- GetHashCode(MaaContext)
-
Returns a hash code for the specified object.
- GetHashCode()
-
Serves as the default hash function.
- GetHitCount(string, out ulong)
-
Gets the hit count of a node.
- GetNodeData(string, out string)
-
Gets the node data from the MaaFramework.Binding.IMaaContext by node name.
- OverrideImage(string, IMaaImageBuffer)
-
Override the image which name from the value of property field e.g. "template".
- OverrideImage(string, MaaImageBuffer)
-
Override the image which name from the value of property field e.g. "template".
- OverrideNext(string, IEnumerable<string>)
-
Override the property field "next" in a node.
- OverridePipeline(string)
-
Override a pipeline.
- RunAction(string, IMaaRectBuffer, string, string)
-
Run an action.
- RunAction(string, MaaRectBuffer, string, string)
-
Run an action.
- RunRecognition(string, IMaaImageBuffer, string)
-
Run a recognition.
- RunRecognition(string, MaaImageBuffer, string)
-
Run a recognition.
- RunTask(string, string)
-
Runs a task.
- SetAnchor(string, string)
-
Sets an anchor to a node.
Operators
- operator ==(MaaContext?, MaaContext?)
-
Compares two values to determine equality.
- operator !=(MaaContext?, MaaContext?)
-
Compares two values to determine inequality.