架构大更

This commit is contained in:
SoulliesOfficial
2026-03-20 11:56:50 -04:00
parent e60ef64d01
commit d09b58fd80
3663 changed files with 15232012 additions and 105579 deletions

View File

@@ -1,75 +1,74 @@
using System.Collections;
using System;
using System.Collections.Generic;
using System;
namespace ES3Internal
{
internal enum ES3SpecialByte : byte
{
Null = 0,
Bool = 1,
Byte = 2,
Sbyte = 3,
Char = 4,
Decimal = 5,
Double = 6,
Float = 7,
Int = 8,
Uint = 9,
Long = 10,
Ulong = 11,
Short = 12,
Ushort = 13,
String = 14,
ByteArray = 15,
Collection = 128,
Dictionary = 129,
Null = 0,
Bool = 1,
Byte = 2,
Sbyte = 3,
Char = 4,
Decimal = 5,
Double = 6,
Float = 7,
Int = 8,
Uint = 9,
Long = 10,
Ulong = 11,
Short = 12,
Ushort = 13,
String = 14,
ByteArray = 15,
Collection = 128,
Dictionary = 129,
CollectionItem = 130,
Object = 254,
Terminator = 255
Object = 254,
Terminator = 255
}
internal static class ES3Binary
{
internal const string ObjectTerminator = ".";
internal static readonly Dictionary<ES3SpecialByte, Type> IdToType = new Dictionary<ES3SpecialByte, Type>()
internal static readonly Dictionary<ES3SpecialByte, Type> IdToType = new()
{
{ ES3SpecialByte.Null, null },
{ ES3SpecialByte.Bool, typeof(bool)},
{ ES3SpecialByte.Byte, typeof(byte)},
{ ES3SpecialByte.Sbyte, typeof(sbyte)},
{ ES3SpecialByte.Char, typeof(char)},
{ ES3SpecialByte.Decimal, typeof(decimal)},
{ ES3SpecialByte.Double, typeof(double)},
{ ES3SpecialByte.Float, typeof(float)},
{ ES3SpecialByte.Int, typeof(int)},
{ ES3SpecialByte.Uint, typeof(uint)},
{ ES3SpecialByte.Long, typeof(long)},
{ ES3SpecialByte.Ulong, typeof(ulong)},
{ ES3SpecialByte.Short, typeof(short)},
{ ES3SpecialByte.Ushort, typeof(ushort)},
{ ES3SpecialByte.String, typeof(string)},
{ ES3SpecialByte.ByteArray, typeof(byte[])}
{ ES3SpecialByte.Null, null },
{ ES3SpecialByte.Bool, typeof(bool) },
{ ES3SpecialByte.Byte, typeof(byte) },
{ ES3SpecialByte.Sbyte, typeof(sbyte) },
{ ES3SpecialByte.Char, typeof(char) },
{ ES3SpecialByte.Decimal, typeof(decimal) },
{ ES3SpecialByte.Double, typeof(double) },
{ ES3SpecialByte.Float, typeof(float) },
{ ES3SpecialByte.Int, typeof(int) },
{ ES3SpecialByte.Uint, typeof(uint) },
{ ES3SpecialByte.Long, typeof(long) },
{ ES3SpecialByte.Ulong, typeof(ulong) },
{ ES3SpecialByte.Short, typeof(short) },
{ ES3SpecialByte.Ushort, typeof(ushort) },
{ ES3SpecialByte.String, typeof(string) },
{ ES3SpecialByte.ByteArray, typeof(byte[]) }
};
internal static readonly Dictionary<Type, ES3SpecialByte> TypeToId = new Dictionary<Type, ES3SpecialByte>()
internal static readonly Dictionary<Type, ES3SpecialByte> TypeToId = new()
{
{ typeof(bool), ES3SpecialByte.Bool},
{ typeof(byte), ES3SpecialByte.Byte},
{ typeof(sbyte), ES3SpecialByte.Sbyte},
{ typeof(char), ES3SpecialByte.Char},
{ typeof(decimal), ES3SpecialByte.Decimal},
{ typeof(double), ES3SpecialByte.Double},
{ typeof(float), ES3SpecialByte.Float},
{ typeof(int), ES3SpecialByte.Int},
{ typeof(uint), ES3SpecialByte.Uint},
{ typeof(long), ES3SpecialByte.Long},
{ typeof(ulong), ES3SpecialByte.Ulong},
{ typeof(short), ES3SpecialByte.Short},
{ typeof(ushort), ES3SpecialByte.Ushort},
{ typeof(string), ES3SpecialByte.String},
{ typeof(byte[]), ES3SpecialByte.ByteArray}
{ typeof(bool), ES3SpecialByte.Bool },
{ typeof(byte), ES3SpecialByte.Byte },
{ typeof(sbyte), ES3SpecialByte.Sbyte },
{ typeof(char), ES3SpecialByte.Char },
{ typeof(decimal), ES3SpecialByte.Decimal },
{ typeof(double), ES3SpecialByte.Double },
{ typeof(float), ES3SpecialByte.Float },
{ typeof(int), ES3SpecialByte.Int },
{ typeof(uint), ES3SpecialByte.Uint },
{ typeof(long), ES3SpecialByte.Long },
{ typeof(ulong), ES3SpecialByte.Ulong },
{ typeof(short), ES3SpecialByte.Short },
{ typeof(ushort), ES3SpecialByte.Ushort },
{ typeof(string), ES3SpecialByte.String },
{ typeof(byte[]), ES3SpecialByte.ByteArray }
};
internal static ES3SpecialByte TypeToByte(Type type)
@@ -95,7 +94,7 @@ namespace ES3Internal
internal static bool IsPrimitive(ES3SpecialByte b)
{
switch(b)
switch (b)
{
case ES3SpecialByte.Bool:
case ES3SpecialByte.Byte:
@@ -118,4 +117,4 @@ namespace ES3Internal
}
}
}
}
}

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 768
packageName: Easy Save - The Complete Save Game & Data Serializer System
packageVersion: 3.5.24
packageVersion: 3.5.25
assetPath: Assets/Plugins/Easy Save 3/Scripts/Writers/ES3Binary.cs
uploadId: 776453
uploadId: 816548

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 768
packageName: Easy Save - The Complete Save Game & Data Serializer System
packageVersion: 3.5.24
packageVersion: 3.5.25
assetPath: Assets/Plugins/Easy Save 3/Scripts/Writers/ES3BinaryWriter.cs
uploadId: 776453
uploadId: 816548

View File

@@ -14,6 +14,6 @@ AssetOrigin:
serializedVersion: 1
productId: 768
packageName: Easy Save - The Complete Save Game & Data Serializer System
packageVersion: 3.5.24
packageVersion: 3.5.25
assetPath: Assets/Plugins/Easy Save 3/Scripts/Writers/ES3CacheWriter.cs
uploadId: 776453
uploadId: 816548

View File

@@ -14,6 +14,6 @@ AssetOrigin:
serializedVersion: 1
productId: 768
packageName: Easy Save - The Complete Save Game & Data Serializer System
packageVersion: 3.5.24
packageVersion: 3.5.25
assetPath: Assets/Plugins/Easy Save 3/Scripts/Writers/ES3JSONWriter.cs
uploadId: 776453
uploadId: 816548

View File

@@ -14,6 +14,6 @@ AssetOrigin:
serializedVersion: 1
productId: 768
packageName: Easy Save - The Complete Save Game & Data Serializer System
packageVersion: 3.5.24
packageVersion: 3.5.25
assetPath: Assets/Plugins/Easy Save 3/Scripts/Writers/ES3Writer.cs
uploadId: 776453
uploadId: 816548

View File

@@ -13,6 +13,6 @@ AssetOrigin:
serializedVersion: 1
productId: 768
packageName: Easy Save - The Complete Save Game & Data Serializer System
packageVersion: 3.5.24
packageVersion: 3.5.25
assetPath: Assets/Plugins/Easy Save 3/Scripts/Writers/ES3XMLWriter.cs
uploadId: 776453
uploadId: 816548