Add project files.

This commit is contained in:
Razmoth
2022-09-27 17:40:31 +04:00
parent 871d908948
commit a476ace7d7
305 changed files with 71340 additions and 84 deletions

View File

@@ -0,0 +1,31 @@
namespace AssetStudio
{
public static class YAMLMappingNodeExtensions
{
public static void AddSerializedVersion(this YAMLMappingNode _this, int version)
{
if(version > 1)
{
_this.Add(SerializedVersionName, version);
}
}
public static void ForceAddSerializedVersion(this YAMLMappingNode _this, int version)
{
if (version > 0)
{
_this.Add(SerializedVersionName, version);
}
}
public static void InsertSerializedVersion(this YAMLMappingNode _this, int version)
{
if(version > 1)
{
_this.InsertBegin(SerializedVersionName, version);
}
}
public const string SerializedVersionName = "serializedVersion";
}
}