You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
947 B
25 lines
947 B
<MudDataGrid T="EntityVitalityModel" Items="@_data" |
|
SortMode="SortMode.Multiple" |
|
Filterable="true" |
|
Hideable="true"> |
|
<Columns> |
|
<PropertyColumn Property="x => x.Parent.GetName()" Title="Entity"/> |
|
<PropertyColumn Property="x => x.Health"/> |
|
<PropertyColumn Property="x => x.Armor"/> |
|
<PropertyColumn Property="x => x.Defense"/> |
|
<PropertyColumn Property="x => x.DefenseLayer"/> |
|
<PropertyColumn Property="x => x.IsStructure"/> |
|
<PropertyColumn Property="x => x.IsEtheric"/> |
|
<PropertyColumn Property="x => x.Parent.GetFaction()" Title="Faction"/> |
|
<PropertyColumn Property="x => x.Parent.GetImmortal()" Title="Immortal"/> |
|
</Columns> |
|
</MudDataGrid> |
|
|
|
@code { |
|
|
|
readonly IEnumerable<EntityVitalityModel> _data = EntityData.Get() |
|
.SelectMany(e => e.Value.EntityParts) |
|
.OfType<EntityVitalityModel>() |
|
.ToList(); |
|
|
|
} |