Show / Hide Table of Contents

    Class CancelOperationsOperation

    Class that represents an operation that cancels other operations.

    Inheritance
    System.Object
    Priority_Queue.FastPriorityQueueNode
    Priority_Queue.StablePriorityQueueNode
    BaseEvent
    Operation
    ElevatedOperation
    BaseEnvironmentOperation
    CancelOperationsOperation
    Implements
    System.IEquatable<BaseEvent>
    IElevatedOperation
    IOperation
    IEvent
    Inherited Members
    BaseEnvironmentOperation.PlaceCreature(IElevatedOperationContext, ITile, ICreature)
    BaseEnvironmentOperation.RemoveCreature(IElevatedOperationContext, ICreature)
    ElevatedOperation.Execute(IOperationContext)
    Operation.CanBeCancelled
    Operation.AssociatedExhaustion
    Operation.GetRequestor(ICreatureFinder)
    Operation.Execute(IEventContext)
    Operation.AddContentToContainerOrFallback(IOperationContext, IThingContainer, IThing, Byte, Boolean, ICreature)
    Operation.DispatchTextNotification(IOperationContext, String)
    Operation.SendNotification(IOperationContext, INotification)
    BaseEvent.Cancelled
    BaseEvent.Expedited
    BaseEvent.Completed
    BaseEvent.EventId
    BaseEvent.RequestorId
    BaseEvent.RepeatAfter
    BaseEvent.HasCancellationHandler
    BaseEvent.HasExpeditionHandler
    BaseEvent.ExcludeFromTelemetry
    BaseEvent.State
    BaseEvent.Cancel()
    BaseEvent.Expedite()
    BaseEvent.Complete(Boolean)
    BaseEvent.Equals(BaseEvent)
    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 Source

    CancelOperationsOperation(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 Source

    Creature

    Gets the creature who's actions are being cancelled.

    Declaration
    public ICreature Creature { get; }
    Property Value
    Type Description
    ICreature
    | Improve this Doc View Source

    TypeToCancel

    Gets the type of operation to cancel.

    Declaration
    public Type TypeToCancel { get; }
    Property Value
    Type Description
    System.Type

    Methods

    | Improve this Doc View Source

    Execute(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
    ElevatedOperation.Execute(IElevatedOperationContext)

    Implements

    System.IEquatable<T>
    IElevatedOperation
    IOperation
    IEvent

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.