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.
26 lines
699 B
26 lines
699 B
<h3>WeaponTable</h3> |
|
|
|
|
|
<MudDataGrid Items="@_entityWeapons"> |
|
<Columns> |
|
<PropertyColumn Property="x => x.Range" Title="Range"/> |
|
<PropertyColumn Property="x => x.Damage" Title="Damage"/> |
|
<PropertyColumn Property="x => x.AttacksPerSecond" Title="Attacks Per Second"/> |
|
<PropertyColumn Property="x => x.Parent.GetName()" Title="Owner Name"/> |
|
</Columns> |
|
</MudDataGrid> |
|
|
|
@code { |
|
List<EntityWeaponModel> _entityWeapons; |
|
|
|
protected override void OnInitialized() |
|
{ |
|
base.OnInitialized(); |
|
|
|
_entityWeapons = DATA.Get() |
|
.SelectMany(e => e.Value.EntityParts) |
|
.OfType<EntityWeaponModel>() |
|
.ToList(); |
|
} |
|
|
|
} |