mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-06-09 10:06:34 +02:00
Previous commit except I don't check out the wrong commit this time.
This commit is contained in:
@@ -400,7 +400,7 @@ namespace Robust.Shared.CompNetworkGenerator
|
||||
if ({name}Value == null)
|
||||
component.{name} = null!;
|
||||
else
|
||||
component.{name} = {nullCast}({name}Value.Clone());");
|
||||
component.{name} = ({nullCast})({name}Value.Clone());");
|
||||
shallowClone.Append($@"
|
||||
{name} = this.{name},");
|
||||
deltaApply.Add($"fullState.{name} = {name} == null ? null! : {name}.Clone();");
|
||||
@@ -623,6 +623,7 @@ namespace Robust.Shared.CompNetworkGenerator
|
||||
|
||||
[System.Serializable, NetSerializable]
|
||||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||
[RobustAutoGenerated]
|
||||
public sealed class {{stateName}} : IComponentState
|
||||
{
|
||||
{{stateFields}}
|
||||
|
||||
Reference in New Issue
Block a user