Show / Hide Table of Contents

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 Source

ItemMovedEventArgs(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.

| Improve this Doc View Source

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 Source

Item

Item being represented.

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

NewPosition

Position of item after it has been moved.

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

OldPosition

Position of item before it was moved.

Declaration
public Coord OldPosition { get; }
Property Value
Type Description
Coord

Extension Methods

Utility.Yield<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX