From: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Date: Sun, 12 May 2024 14:36:46 +0000 (-0700)
Subject: Add live templates for networked data field, networked component and auto state compo...
X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=ed7075942d827100408429cd0e1bc4d9bbacfc5d;p=space-station-14.git
Add live templates for networked data field, networked component and auto state component (#27906)
* Add live templates for networked data field, networked component and auto state component
* Fix field access
* Fix readonly
---
diff --git a/SpaceStation14.sln.DotSettings b/SpaceStation14.sln.DotSettings
index 0decb9a11b..800617c0fd 100644
--- a/SpaceStation14.sln.DotSettings
+++ b/SpaceStation14.sln.DotSettings
@@ -228,6 +228,32 @@ public sealed partial class $CLASS$ : IPrototype {
public string ID { get; } = default!;
}
SS14
+ True
+ True
+ Networked Auto State Component
+ True
+ 0
+ True
+ True
+ 2.0
+ InCSharpFile
+ nscomp
+ True
+ [RegisterComponent, Robust.Shared.GameStates.NetworkedComponent, AutoGenerateComponentState]
+[Access(typeof($ACCESS$))]
+ True
+ True
+ Networked Component
+ True
+ 0
+ True
+ True
+ 2.0
+ InCSharpFile
+ ncomp
+ True
+ [RegisterComponent, Robust.Shared.GameStates.NetworkedComponent]
+[Access(typeof($ACCESS$))]
True
True
IoC [Dependency]
@@ -465,6 +491,21 @@ public abstract class $CLASS$ : EntitySystem {
}
}
SS14
+ True
+ True
+ Automatically Networked Data Field
+ True
+ 1
+ True
+ 0
+ True
+ True
+ 2.0
+ InCSharpTypeMember
+ nfield
+ True
+ [DataField, AutoNetworkedField]
+public $TYPE$ $NAME$;
True
True
cs