| | 1 | | // Copyright (c) 2020-2024 dotBunny Inc. |
| | 2 | | // dotBunny licenses this file to you under the BSL-1.0 license. |
| | 3 | | // See the LICENSE file in the project root for more information. |
| | 4 | |
|
| | 5 | | namespace GDX.DataTables |
| | 6 | | { |
| | 7 | | /// <summary> |
| | 8 | | /// A description of a row in a <see cref="DataTableBase" />. |
| | 9 | | /// </summary> |
| | 10 | | public struct RowDescription |
| | 11 | | { |
| | 12 | | /// <summary> |
| | 13 | | /// The given name of the row. |
| | 14 | | /// </summary> |
| | 15 | | public string Name; |
| | 16 | |
|
| | 17 | | /// <summary> |
| | 18 | | /// The unique identifier for the row. |
| | 19 | | /// </summary> |
| | 20 | | public int Identifier; |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// The current sort order. |
| | 24 | | /// </summary> |
| | 25 | | public int SortOrder; |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Generates a custom string based on the row. |
| | 29 | | /// </summary> |
| | 30 | | /// <returns>A user-friendly string representation of the <see cref="RowDescription" />.</returns> |
| | 31 | | public override string ToString() |
| 0 | 32 | | { |
| 0 | 33 | | return Name; |
| 0 | 34 | | } |
| | 35 | | } |
| | 36 | | } |