Class ChangeItemOperation
Class that represents an event for an item change.
Inheritance
System.Object
Priority_Queue.FastPriorityQueueNode
Priority_Queue.StablePriorityQueueNode
ChangeItemOperation
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 ChangeItemOperation : BaseEnvironmentOperation, IEquatable<BaseEvent>, IElevatedOperation, IOperation, IEvent
Constructors
| Improve this Doc View SourceChangeItemOperation(UInt32, UInt16, Location, UInt16, ICreature)
Initializes a new instance of the ChangeItemOperation class.
Declaration
public ChangeItemOperation(uint requestorId, ushort typeId, Location fromLocation, ushort toTypeId, ICreature carrierCreature = null)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | requestorId | The id of the creature requesting the change. |
System.UInt16 | typeId | The type id of the item being changed. |
Location | fromLocation | The location from which the item is being changed. |
System.UInt16 | toTypeId | The type id of the item to change to. |
ICreature | carrierCreature | The creature who is carrying the thing, if any. |
Properties
| Improve this Doc View SourceFromCreature
Gets the creature from which the item is being changed, if any.
Declaration
public ICreature FromCreature { get; }
Property Value
Type | Description |
---|---|
ICreature |
FromLocation
Gets the location from which the item is being changed.
Declaration
public Location FromLocation { get; }
Property Value
Type | Description |
---|---|
Location |
FromTypeId
Gets the type id from which the item is being changed.
Declaration
public ushort FromTypeId { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
ToTypeId
Gets the type id of the item to change to.
Declaration
public ushort ToTypeId { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
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>