Skip to content

Commit 5a27370

Browse files
committed
Push Version
1 parent 346e9f1 commit 5a27370

14 files changed

Lines changed: 20 additions & 13 deletions

Any2GSX-Installer-latest.exe

0 Bytes
Binary file not shown.

Any2GSX/Aircraft/AircraftController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ protected override async Task DoInit()
8787
GsxController.ServiceJetway.OnOperationChanged += OnJetwayOperationChange;
8888
GsxController.ServiceStairs.OnStateChanged += OnStairStateChanged;
8989
GsxController.ServiceStairs.OnOperationChanged += OnStairOperationChange;
90+
GsxController.ServiceStairs.OnVehicleChanged += OnStairVehicleChange;
9091
GsxController.ServicePushBack.OnStateChanged += OnPushStateChange;
9192
GsxController.ServicePushBack.OnPushStatus += OnPushOperationChange;
9293
GsxController.ServiceGpu.OnGpuConnection += OnGpuConnectionChange;
@@ -182,6 +183,7 @@ protected override async Task DoCleanup()
182183
GsxController.ServiceJetway.OnOperationChanged -= OnJetwayOperationChange;
183184
GsxController.ServiceStairs.OnStateChanged -= OnStairStateChanged;
184185
GsxController.ServiceStairs.OnOperationChanged -= OnStairOperationChange;
186+
GsxController.ServiceStairs.OnVehicleChanged -= OnStairVehicleChange;
185187
GsxController.ServicePushBack.OnStateChanged -= OnPushStateChange;
186188
GsxController.ServicePushBack.OnPushStatus -= OnPushOperationChange;
187189
GsxController.ServiceGpu.OnGpuConnection -= OnGpuConnectionChange;
@@ -434,7 +436,7 @@ protected virtual Task OnStairOperationChange(GsxServiceState state)
434436
protected virtual Task OnStairVehicleChange(GsxVehicleStair stair, GsxVehicleStairState state)
435437
{
436438
if (IsValidState && IsValidGroundPhase && !GsxController.ServiceStairs.IsStateOverridden)
437-
return Aircraft.OnStairVerhicleChange(stair, state, SettingProfile.DoorPaxHandling && SettingProfile.DoorStairHandling);
439+
return Aircraft.OnStairVehicleChange(stair, state, SettingProfile.DoorPaxHandling && SettingProfile.DoorStairHandling);
438440
return Task.CompletedTask;
439441
}
440442

Any2GSX/Aircraft/AircraftLua.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,12 +1124,12 @@ public override Task OnStairOperationChange(GsxServiceState state, bool paxDoorA
11241124
return base.OnStairOperationChange(state, paxDoorAllowed);
11251125
}
11261126

1127-
public override Task OnStairVerhicleChange(GsxVehicleStair stair, GsxVehicleStairState state, bool paxDoorAllowed)
1127+
public override Task OnStairVehicleChange(GsxVehicleStair stair, GsxVehicleStairState state, bool paxDoorAllowed)
11281128
{
11291129
if (HasLuaFunction(out LuaFunction func))
11301130
return CallLua<object>(func, stair, state, paxDoorAllowed);
11311131
else
1132-
return base.OnStairVerhicleChange(stair, state, paxDoorAllowed);
1132+
return base.OnStairVehicleChange(stair, state, paxDoorAllowed);
11331133
}
11341134

11351135
public override Task SetPanelRefuel(bool target)

Any2GSX/Any2GSX.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<PropertyGroup>
16-
<Version>0.4.5</Version>
16+
<Version>0.4.6</Version>
1717
<Title>$(AssemblyName)</Title>
1818
<Authors>Fragtality</Authors>
1919
<Company>Fragtality</Company>

Any2GSX/GSX/Automation/GsxAutomationController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ protected virtual async Task<bool> ResetStairSequence()
994994
}
995995
await ServiceStairs.Cancel(GsxCancelService.Abort);
996996
await Task.Delay(Config.MenuOpenTimeout, RequestToken);
997-
return !ServiceStairs.IsOperating || ServiceStairs.IsAnyStair((state) => state == GsxVehicleStairState.Idle);
997+
return !ServiceStairs.IsOperating || ServiceStairs.AllStairs((state) => state <= GsxVehicleStairState.Idle);
998998
}
999999

10001000
protected virtual async Task<bool> ConnectStairsAndFuel()

Any2GSX/GSX/GsxController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ protected virtual Task OnCouatlVariable(ISimResourceSubscription sub, object dat
301301
{
302302
Logger.Debug($"Couatl Variables NOT valid! (started: {CouatlLastStarted} / progress: {CouatlLastProgress})");
303303
CouatlVarsValid = false;
304+
_ = TaskTools.RunPool(() => ServiceStairs.ResetVehicleState());
304305
_ = TaskTools.RunPool(() => OnCouatlStopped?.Invoke(this));
305306
}
306307
else

Any2GSX/GSX/Services/GsxServiceStairs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public virtual bool AllStairs(Func<GsxVehicleStairState, bool> func)
197197

198198
public virtual bool StairsExtending()
199199
{
200-
return AllStairs((state) => state == GsxVehicleStairState.Extending || state == GsxVehicleStairState.Completing || state == GsxVehicleStairState.InPosition);
200+
return AllStairs((state) => state == GsxVehicleStairState.Extending || state == GsxVehicleStairState.Completing || state == GsxVehicleStairState.InPosition || state == GsxVehicleStairState.Unknown);
201201
}
202202

203203
public virtual async Task ResetVehicleState()

Any2GSX/PluginInterface.dll

0 Bytes
Binary file not shown.

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### App
2+
- Changes due to GSX Behavior Change (Fix?) on Stair Vehicle Status
3+
- Fixed Interface Method 'OnStairVehicleChange' not being calledd
4+
- Fixed Type in Plugin Interface

Installer/Payload/AppPackage.zip

113 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)