Conveyor Belt optimization and prediction (#12929)

* belt multithreading

* moves away from multithreading and changes setting awake directly to physics system method

* prediction for conveyors

* Fixes missing reference in FaxSystem

* Fixes oddities

* Adds networked to conveyor components

* Some more cleanup.

* reverts power change event

* Removes the event, fixes a file

* Should fix the rest of the weird additions

* More cleanup to fix extra files

* Fixes again

* fix

* fixes fax system

* Adds component state, cleans up the dependencies

* Checks for prediction

* Merge conflicts

* powa

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
keronshb
2023-02-13 07:20:39 -05:00
committed by GitHub
parent 81cc99b98e
commit 42745b1c6e
8 changed files with 391 additions and 340 deletions

View File

@@ -70,6 +70,7 @@ namespace Content.Server.Power.Components
/// <summary>
/// Raised whenever an ApcPowerReceiver becomes powered / unpowered.
/// Does nothing on the client.
/// </summary>
[ByRefEvent]
public readonly record struct PowerChangedEvent(bool Powered, float ReceivingPower)
@@ -77,4 +78,5 @@ namespace Content.Server.Power.Components
public readonly bool Powered = Powered;
public readonly float ReceivingPower = ReceivingPower;
}
}