@layout PageLayout @page "/database/{text}" @inject IEntityDisplayService entityDisplayService @implements IDisposable Game Patch: @EntityModel.GameVersion
@if(Text.Trim().ToLower().Equals("walter")) { Unhandled Exception: EXCEPTION_MEMORY_SIZE_VIOLATION UNIT_WALTER too powerful to be displayed. This SHOULD NEVER HAPPEN! } else if (entity == null) {
Invalid entity name entered: @Text
No such entity. Did you mean "Throne"?
} else { }
@code { [Parameter] public string? Text { get; set; } private EntityModel? entity = null; protected override void OnInitialized() { entityDisplayService.Subscribe(StateHasChanged); foreach (var e in DATA.Get().Values) { if (e.Info().Name.Equals(Text)) { entity = e; return; } } } void IDisposable.Dispose() { entityDisplayService.Unsubscribe(StateHasChanged); } }