Class ItemMovedEventArgs<T>
Event arguments for spatial maps ItemMoved event.
Inheritance
System.Object
System.EventArgs
ItemMovedEventArgs<T>
Inherited Members
System.EventArgs.Empty
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: GoRogue
Assembly: GoRogue.dll
Syntax
public class ItemMovedEventArgs<T> : EventArgs
Type Parameters
Name | Description |
---|---|
T | Type of item being stored. |
Constructors
| Improve this Doc View SourceItemMovedEventArgs(T, Coord, Coord)
Constructor.
Declaration
public ItemMovedEventArgs(T item, Coord oldPosition, Coord newPosition)
Parameters
Type | Name | Description |
---|---|---|
T | item | Item being represented. |
Coord | oldPosition | Position of item before it was moved. |
Coord | newPosition | Position of item after it has been moved. |
ItemMovedEventArgs(T, Int32, Int32, Int32, Int32)
Constructor.
Declaration
public ItemMovedEventArgs(T item, int oldPositionX, int oldPositionY, int newPositionX, int newPositionY)
Parameters
Type | Name | Description |
---|---|---|
T | item | Item being represented. |
System.Int32 | oldPositionX | X-value of the position of item before it was moved. |
System.Int32 | oldPositionY | Y-value of the position of item before it was moved. |
System.Int32 | newPositionX | X-value of the position of item after it has been moved. |
System.Int32 | newPositionY | Y-value of the position of item after it has been moved. |
Properties
| Improve this Doc View SourceItem
Item being represented.
Declaration
public T Item { get; }
Property Value
Type | Description |
---|---|
T |
NewPosition
Position of item after it has been moved.
Declaration
public Coord NewPosition { get; }
Property Value
Type | Description |
---|---|
Coord |
OldPosition
Position of item before it was moved.
Declaration
public Coord OldPosition { get; }
Property Value
Type | Description |
---|---|
Coord |