OnSaveLoad
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnSaveLoad( Dictionary`2 list )
{
Puts( "OnSaveLoad works!" );
}
Location
- SaveRestore::Load(string strFilename, bool allowOutOfDateSaves)
csharp
//---
current.SpawnAsMapEntity();
}
}
DebugEx.Log("\tdone.", StackTraceLogType.None);
DebugEx.Log("Spawning " + dictionary.Count.ToString() + " entities from save", StackTraceLogType.None);
object returnvar = Interface.CallHook("OnSaveLoad", dictionary);
if (returnvar is bool)
{
return (bool)returnvar;
}
BaseNetworkable.LoadInfo info = default(BaseNetworkable.LoadInfo);
//---