File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
4
using System . Reflection ;
5
+ using System . Text . RegularExpressions ;
5
6
using Kekser . SaveSystem . Data ;
6
7
using UnityEngine ;
7
8
8
9
namespace Kekser . SaveSystem . Attributes
9
10
{
10
11
public static class SaveAttributeManager
11
12
{
13
+ private const string AssembliesToIgnoreRegex = @"^Unity\.|^UnityEngine\.|^mscorlib|^System\.|^Mono\." ;
14
+
12
15
[ RuntimeInitializeOnLoadMethod ( RuntimeInitializeLoadType . BeforeSceneLoad ) ]
13
16
private static void Initialize ( )
14
17
{
@@ -58,7 +61,7 @@ public static void CacheTypes()
58
61
59
62
foreach ( Assembly assembly in assemblies )
60
63
{
61
- if ( ! assembly . FullName . StartsWith ( "Assembly-CSharp" ) && ! assembly . FullName . StartsWith ( "SaveSystem" ) )
64
+ if ( Regex . IsMatch ( assembly . FullName , AssembliesToIgnoreRegex ) )
62
65
continue ;
63
66
64
67
Type [ ] types = assembly . GetTypes ( ) ;
Original file line number Diff line number Diff line change 2
2
"name" : " com.kekser.savesystem" ,
3
3
"displayName" : " SaveSystem" ,
4
4
"author" : { "name" : " Kekser" , "url" : " https://github.com/DerKekser" },
5
- "version" : " 1.1.0 " ,
5
+ "version" : " 1.1.1 " ,
6
6
"unity" : " 2020.3" ,
7
7
"description" : " A save system for unity." ,
8
8
"keywords" : [ " save" , " load" ],
You can’t perform that action at this time.
0 commit comments