Skip to content

OnSaveLoad

Usage

  • Return a bool value to override default behavior

Example Autogenerated

csharp
private bool? OnSaveLoad( Dictionary<BaseEntity, ProtoBuf.Entity> dictionary`2 )
{
    Puts( "OnSaveLoad works!" );
    return null;
}

Location

  • SaveRestore::Load(string strFilename, bool allowOutOfDateSaves)
csharp
//---
				item.SpawnAsMapEntity();
			}
		}
		DebugEx.Log("\tdone.");
		DebugEx.Log("Spawning " + dictionary.Count + " entities from save");
		object obj2 = Interface.CallHook("OnSaveLoad", dictionary);
		if (obj2 is bool)
		{
			return (bool)obj2;
		}
		BaseNetworkable.LoadInfo info = new BaseNetworkable.LoadInfo
//---

Released under the MIT License.