|
@@ -111,8 +111,6 @@ public class AircraftMH : AircraftEntity
|
|
|
|
|
|
base.End();
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
|
|
|
// 更新
|
|
|
public override void Update(double time)
|
|
@@ -185,38 +183,38 @@ public class AircraftMH : AircraftEntity
|
|
|
|
|
|
|
|
|
|
|
|
- public override async UniTaskVoid SyncAircraftInfo()
|
|
|
- {
|
|
|
- var location = FXJHGenerate.GetAllCurrentLocation(TurningPoints, SimulationTime);
|
|
|
-
|
|
|
- if (FireGrids.Count > 0 )
|
|
|
- {
|
|
|
- Fire.FireGrid fireGrid = FireGrids.First();
|
|
|
- // 发送火焰数据
|
|
|
- if (SimulationTime > fireGrid.Time)
|
|
|
- {
|
|
|
- //洒水了
|
|
|
- S2C_FireSpread fireSpread = new S2C_FireSpread();
|
|
|
- fireSpread.AircraftId = AircraftId;
|
|
|
- fireSpread.FirePointId = mhRescueMission.FireGround.FirePointName;
|
|
|
- fireSpread.FireGrids = fireGrid.FireGrids;
|
|
|
- fireSpread.FiredGrids = fireGrid.FiredGrids;
|
|
|
- SessionComponent.Instance.Session.Send(fireSpread);
|
|
|
- FireGrids.RemoveAt(0);
|
|
|
- }
|
|
|
- }
|
|
|
- SyncLocation(location.Item1, location.Item3);
|
|
|
-
|
|
|
- if (location.Item2)
|
|
|
- {
|
|
|
- SyncOver = true;
|
|
|
- SyncOverAction?.Invoke();
|
|
|
- return;
|
|
|
- }
|
|
|
- SimulationTime += Init.SimulationSpeed;
|
|
|
- await Task.Delay(TimeSpan.FromSeconds(1f));
|
|
|
- SyncAircraftInfo().Forget();
|
|
|
- }
|
|
|
+ // public async UniTaskVoid SyncAircraftInfo()
|
|
|
+ // {
|
|
|
+ // var location = FXJHGenerate.GetAllCurrentLocation(TurningPoints, SimulationTime);
|
|
|
+ //
|
|
|
+ // if (FireGrids.Count > 0 )
|
|
|
+ // {
|
|
|
+ // Fire.FireGrid fireGrid = FireGrids.First();
|
|
|
+ // // 发送火焰数据
|
|
|
+ // if (SimulationTime > fireGrid.Time)
|
|
|
+ // {
|
|
|
+ // //洒水了
|
|
|
+ // S2C_FireSpread fireSpread = new S2C_FireSpread();
|
|
|
+ // fireSpread.AircraftId = AircraftId;
|
|
|
+ // fireSpread.FirePointId = mhRescueMission.FireGround.FirePointName;
|
|
|
+ // fireSpread.FireGrids = fireGrid.FireGrids;
|
|
|
+ // fireSpread.FiredGrids = fireGrid.FiredGrids;
|
|
|
+ // SessionComponent.Instance.Session.Send(fireSpread);
|
|
|
+ // FireGrids.RemoveAt(0);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // SyncLocation(location.Item1, location.Item3);
|
|
|
+ //
|
|
|
+ // if (location.Item2)
|
|
|
+ // {
|
|
|
+ // SyncOver = true;
|
|
|
+ // SyncOverAction?.Invoke();
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // SimulationTime += Init.SimulationSpeed;
|
|
|
+ // await Task.Delay(TimeSpan.FromSeconds(1f));
|
|
|
+ // SyncAircraftInfo().Forget();
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
[ObjectSystem]
|