Class CancelOperationsOperation
Class that represents an operation that cancels other operations.
Inheritance
System.Object
Priority_Queue.FastPriorityQueueNode
Priority_Queue.StablePriorityQueueNode
CancelOperationsOperation
Inherited Members
Priority_Queue.StablePriorityQueueNode.InsertionIndex
Priority_Queue.FastPriorityQueueNode.Priority
Priority_Queue.FastPriorityQueueNode.QueueIndex
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Mechanics.Operations
Assembly: Fibula.Mechanics.dll
Syntax
public class CancelOperationsOperation : BaseEnvironmentOperation, IEquatable<BaseEvent>, IElevatedOperation, IOperation, IEvent
Constructors
| Improve this Doc View SourceCancelOperationsOperation(UInt32, ICreature, Type)
Initializes a new instance of the CancelOperationsOperation class.
Declaration
public CancelOperationsOperation(uint requestorId, ICreature creature, Type typeToCancel = null)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | requestorId | The id of the creature requesting the cancellation. |
ICreature | creature | The creature who's actions are being cancelled. |
System.Type | typeToCancel | Optional. The specific type of operation to cancel. |
Properties
| Improve this Doc View SourceCreature
Gets the creature who's actions are being cancelled.
Declaration
public ICreature Creature { get; }
Property Value
Type | Description |
---|---|
ICreature |
TypeToCancel
Gets the type of operation to cancel.
Declaration
public Type TypeToCancel { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
| Improve this Doc View SourceExecute(IElevatedOperationContext)
Executes the operation's logic.
Declaration
protected override void Execute(IElevatedOperationContext context)
Parameters
Type | Name | Description |
---|---|---|
IElevatedOperationContext | context | A reference to the operation context. |
Overrides
Implements
System.IEquatable<T>