Class ItemEventArgs<T>
Event arguments for spatial map events pertaining to an item (ItemAdded, ItemRemoved, etc.)
Namespace: SadRogue.Primitives.SpatialMaps
Assembly: TheSadRogue.Primitives.dll
Syntax
public class ItemEventArgs<T> : EventArgs
Type Parameters
Name | Description |
---|---|
T | Type of item. |
Constructors
ItemEventArgs(T, Point)
Constructor.
Declaration
public ItemEventArgs(T item, Point position)
Parameters
Type | Name | Description |
---|---|---|
T | item | Item being represented. |
Point | position | Current position of the item. |
ItemEventArgs(T, Int32, Int32)
Constructor.
Declaration
public ItemEventArgs(T item, int x, int y)
Parameters
Type | Name | Description |
---|---|---|
T | item | Item being represented. |
Int32 | x | X-value of the current position of the item. |
Int32 | y | Y-value of the current position of the item. |
Properties
Item
Item being represented.
Declaration
public T Item { get; }
Property Value
Type | Description |
---|---|
T |
Position
Current position of that item at time of event.
Declaration
public Point Position { get; }
Property Value
Type | Description |
---|---|
Point |