Remove action bar binding adapter
This commit is contained in:
parent
7eda899f74
commit
b89bbdd022
4 changed files with 9 additions and 30 deletions
|
|
@ -16819,8 +16819,7 @@ static void RequireActionBarBindingRequestAuthority(string root)
|
|||
{
|
||||
"ActionBarPresentation = _actionBarPresentation",
|
||||
"SceneWiring.ConfigureActionBarPresentation(",
|
||||
"private AetheriaUnityActionBarBindingAdapter ActionBarBindings =>",
|
||||
"ApplyActionBarBindings = ActionBarBindings.ApplyBindings"
|
||||
"ApplyActionBarBindings = _ => _actionBarPresentation?.ApplyLocalBindings()"
|
||||
};
|
||||
|
||||
var missingManagerSymbols = requiredManagerSymbols
|
||||
|
|
@ -16834,6 +16833,13 @@ static void RequireActionBarBindingRequestAuthority(string root)
|
|||
string.Join(", ", missingManagerSymbols));
|
||||
}
|
||||
|
||||
if (actionGameManager.Contains("AetheriaUnityActionBarBindingAdapter", StringComparison.Ordinal) ||
|
||||
File.Exists(Path.Combine(root, "Assets", "Scripts", "Gameplay", "AetheriaUnityActionBarBindingAdapter.cs")))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Action-bar binding restore must go straight to AetheriaUnityActionBarPresentation; the old adapter owned no authority.");
|
||||
}
|
||||
|
||||
var requiredSceneWiringSymbols = new[]
|
||||
{
|
||||
"public void ConfigureActionBarPresentation(",
|
||||
|
|
|
|||
Loading…
Reference in a new issue