diff --git a/SpaceStation14.sln.DotSettings b/SpaceStation14.sln.DotSettings index 20486bae70..1d141ba58a 100644 --- a/SpaceStation14.sln.DotSettings +++ b/SpaceStation14.sln.DotSettings @@ -136,13 +136,15 @@ True &Entity Component True - getAlphaNumericFileNameWithoutExtension() + getFileNameWithoutExtension() + -1 2 True fileheader() 0 True fileDefaultNamespace() + -1 1 True True @@ -154,7 +156,7 @@ /// This is used for... /// </summary> [RegisterComponent] -public sealed class $CLASS$ : Component { +public sealed partial class $CLASS$ : Component { $END$ } SS14 @@ -179,9 +181,12 @@ public partial class $CLASS$ : Component InitializeComponent(); } } + + True + $HEADER$namespace $NAMESPACE$; -public record $RECORD$($END$); +public sealed record $RECORD$($END$); $HEADER$using NUnit.Framework; namespace $NAMESPACE$; @@ -215,7 +220,7 @@ namespace $NAMESPACE$; /// This is a prototype for... /// </summary> [Prototype($END$)] -public sealed class $CLASS$ : IPrototype { +public sealed partial class $CLASS$ : IPrototype { /// <inheritdoc/> [IdDataField] public string ID { get; } = default!; @@ -249,6 +254,7 @@ public sealed class $CLASS$ : IPrototype { False + -1 SS14 $HEADER$namespace $NAMESPACE$; @@ -387,7 +393,7 @@ namespace $NAMESPACE$; /// <summary> /// This is used for... /// </summary> -public abstract class $CLASS$ : Component { +public abstract partial class $CLASS$ : Component { $END$ } @@ -526,7 +532,7 @@ namespace $NAMESPACE$; /// <inheritdoc/> [RegisterComponent, NetworkedComponent] [ComponentReference(typeof(Shared$CLASS$))] -public sealed class $CLASS$ : Shared$CLASS$ { +public sealed partial class $CLASS$ : Shared$CLASS$ { $END$ } SS14 @@ -704,9 +710,20 @@ public sealed class $CLASS$ : Shared$CLASS$ { True True &XAML Control - $HEADER$namespace $NAMESPACE$; + $HEADER$using Robust.Client.AutoGenerated; +using Robust.Client.UserInterface; +using Robust.Client.UserInterface.XAML; -public class $CLASS$ {$END$} +namespace $NAMESPACE$; + +[GenerateTypedNameReferences] +public sealed partial class $CLASS$ : Control +{ + public $CLASS$() + { + RobustXamlLoader.Load(this); + } +} True True Control.xaml @@ -727,9 +744,9 @@ public class $CLASS$ {$END$} 2 True manual - <RelativeConfig File="$NAME$" /> + <RelativeConfig File="$NAME$.xaml" /> 0 - <controls:$CLASS$> - xmlns="https://spacestation14.io" - xmlns:controls="clr-namespace:$NAMESPACE$"> - </controls:$CLASS$> + <controls:$CLASS$ + xmlns="https://spacestation14.io" + xmlns:controls="clr-namespace:$NAMESPACE$">$END$ +</controls:$CLASS$>