Class ItemEventArgs<T>
Event arguments for spatial map events pertaining to an item (ItemAdded, ItemRemoved, etc.)
Inheritance
System.Object
System.EventArgs
ItemEventArgs<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 ItemEventArgs<T> : EventArgs
Type Parameters
| Name | Description |
|---|---|
| T | Type of item. |
Constructors
| Improve this Doc View SourceItemEventArgs(T, Coord)
Constructor.
Declaration
public ItemEventArgs(T item, Coord position)
Parameters
| Type | Name | Description |
|---|---|---|
| T | item | Item being represented. |
| Coord | 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. |
| System.Int32 | x | X-value of the current position of the item. |
| System.Int32 | y | Y-value of the current position of the item. |
Properties
| Improve this Doc View SourceItem
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 Coord Position { get; }
Property Value
| Type | Description |
|---|---|
| Coord |