Merge branch 'feature/rename-torso-class' of https://github.com/Avebluha/SlaveMatrixDecomp into feature/rename-torso-class
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
|
using _2DGAMELIB;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using _2DGAMELIB;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace SlaveMatrix
|
namespace SlaveMatrix
|
||||||
{
|
{
|
||||||
@@ -77,6 +78,16 @@ namespace SlaveMatrix
|
|||||||
[NonSerialized]
|
[NonSerialized]
|
||||||
public Type ThisType;
|
public Type ThisType;
|
||||||
|
|
||||||
|
//Some how fixes saves (thx GPT)
|
||||||
|
|
||||||
|
//So how I am understend it (description)
|
||||||
|
//This Type is empty on deserialization because Type is not serializable
|
||||||
|
//We need just init it after deserialization
|
||||||
|
|
||||||
|
[OnDeserialized]
|
||||||
|
private void OnDeserialized(StreamingContext _) => ThisType = GetType();
|
||||||
|
|
||||||
|
|
||||||
public virtual Ele GetEle(double DisUnit, Med Med, 体配色 体配色)
|
public virtual Ele GetEle(double DisUnit, Med Med, 体配色 体配色)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user