Table of Contents

Interface IPrefabRuntime

Namespace
Bannerlord.UIExtenderEx.Runtimes
Assembly
Bannerlord.UIExtenderEx.dll

Defines a movie loading strategy queried by UIExtenderEx prior to every UI movie load in GauntletMovie.Load.

Intended for runtime implementations rather than mod consumers. While mod extensions (prefab patches and ViewModel mixins) determine visual and logical structure across all runtimes, the active runtime controls execution strategy and performance without altering rendered content.

public interface IPrefabRuntime

Methods

IsOwnVariant(Assembly)

Determines whether a compiled prefab assembly registered in GeneratedPrefabContext originated from this runtime implementation.

bool IsOwnVariant(Assembly variantAssembly)

Parameters

variantAssembly Assembly

The compiled variant assembly to check.

Returns

bool

true if the assembly was generated and registered by this runtime; otherwise, false.

TryServe(WidgetFactory, string, IViewModel?)

Attempts to serve a movie via a pre-compiled or dynamically compiled widget variant registered for the specified (movie, dataSource) pair in GeneratedPrefabContext.

bool TryServe(WidgetFactory widgetFactory, string movieName, IViewModel? dataSource)

Parameters

widgetFactory WidgetFactory

The widget factory requesting the movie.

movieName string

The name of the movie to load.

dataSource IViewModel

The active data source or ViewModel instance.

Returns

bool

true if this runtime vouches for and activates an eligible registered variant; otherwise, false to delegate to the next registered runtime or fall back to the XML loader.


This page was last modified at 10/05/2026 13:34:58 +03:00 (UTC).

Commit Message
Author:    Vitalii Mikhailov
Commit:    f3b725a97c3f299c20e56b5f206e27142ec15edd
* Added C# Auto-Generated XML prefab compilation for patched and dynamic movies, matching vanilla UI performance

* Added name-based property binding fallback for ViewModel subtypes not declared on the parent
* Improved unparseable prefab error logging with name and file details
* Fixed game crash with 3-segment attribute paths
* Added Bannerlord.UIExtenderE...