Moved some vkv objects into an objectmodels folder

This commit is contained in:
That-One-Nerd 2023-05-09 17:56:43 -04:00
parent e6198cd035
commit 71edd4fffa
5 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
namespace SrcMod.Shell.Valve; namespace SrcMod.Shell.Valve.ObjectModels;
public interface IVdfConvertible public interface IVdfConvertible
{ {

View File

@ -1,4 +1,4 @@
namespace SrcMod.Shell.Valve; namespace SrcMod.Shell.Valve.ObjectModels;
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class VdfIgnoreAttribute : Attribute { } public class VdfIgnoreAttribute : Attribute { }

View File

@ -1,4 +1,4 @@
namespace SrcMod.Shell.Valve; namespace SrcMod.Shell.Valve.ObjectModels;
public class VdfSerializationException : Exception public class VdfSerializationException : Exception
{ {

View File

@ -1,4 +1,6 @@
namespace SrcMod.Shell.Valve; using SrcMod.Shell.Valve.ObjectModels;
namespace SrcMod.Shell.Valve;
public static class VdfConvert public static class VdfConvert
{ {

View File

@ -4,7 +4,7 @@ public class VdfSerializer
{ {
public VdfOptions Options => p_options; public VdfOptions Options => p_options;
private VdfOptions p_options; private readonly VdfOptions p_options;
public VdfSerializer() : this(VdfOptions.Default) { } public VdfSerializer() : this(VdfOptions.Default) { }
public VdfSerializer(VdfOptions options) public VdfSerializer(VdfOptions options)