mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-12 22:44:35 +01:00
23 lines
423 B
C#
23 lines
423 B
C#
using System;
|
|
using FullSerializer;
|
|
|
|
namespace MoleMole
|
|
{
|
|
internal class ConfigIOnLoadedConverter : fsObjectProcessor
|
|
{
|
|
public override bool CanProcess(Type type)
|
|
{
|
|
return typeof(IOnLoaded).IsAssignableFrom(type);
|
|
}
|
|
|
|
public override void OnAfterDeserialize(Type storageType, object instance)
|
|
{
|
|
IOnLoaded onLoaded = (IOnLoaded)instance;
|
|
if (onLoaded != null)
|
|
{
|
|
onLoaded.OnLoaded();
|
|
}
|
|
}
|
|
}
|
|
}
|