v1.5.7.0 (Summer Update)

This commit is contained in:
Regalis11
2024-06-18 16:49:51 +03:00
parent 4a63dacbce
commit 230d1b6e78
263 changed files with 7792 additions and 2845 deletions
@@ -37,6 +37,7 @@ namespace Barotrauma
AddLabel,
RemoveLabel,
ResizeLabel,
RenameConnections,
ServerInitialize
}
@@ -156,6 +157,10 @@ namespace Barotrauma
[NetworkSerialize]
internal readonly record struct CircuitBoxRenameLabelEvent(ushort LabelId, Color Color, NetLimitedString NewHeader, NetLimitedString NewBody) : INetSerializableStruct;
[NetworkSerialize]
internal readonly record struct CircuitBoxRenameConnectionLabelsEvent(CircuitBoxInputOutputNode.Type Type, NetDictionary<string, string> Override) : INetSerializableStruct;
[NetworkSerialize]
internal readonly record struct CircuitBoxErrorEvent(string Message) : INetSerializableStruct;
@@ -164,6 +169,7 @@ namespace Barotrauma
ImmutableArray<CircuitBoxServerCreateComponentEvent> Components,
ImmutableArray<CircuitBoxServerCreateWireEvent> Wires,
ImmutableArray<CircuitBoxServerAddLabelEvent> Labels,
ImmutableArray<CircuitBoxRenameConnectionLabelsEvent> LabelOverrides,
Vector2 InputPos,
Vector2 OutputPos) : INetSerializableStruct;
@@ -198,6 +204,8 @@ namespace Barotrauma
=> CircuitBoxOpcode.RemoveLabel,
CircuitBoxResizeLabelEvent
=> CircuitBoxOpcode.ResizeLabel,
CircuitBoxRenameConnectionLabelsEvent
=> CircuitBoxOpcode.RenameConnections,
_ => throw new ArgumentOutOfRangeException(nameof(Data))
};
}