Aura.Channel.Scripting.ScriptManager.Reload C# (CSharp) Method

Reload() public method

Removes all NPCs, props, etc and loads them again.
public Reload ( ) : void
return void
		public void Reload()
		{
			this.ItemScripts.Clear();
			this.AiScripts.Clear();
			this.NpcShopScripts.Clear();
			this.QuestScripts.Clear();
			this.NpcScriptHooks.Clear();
			this.DungeonScripts.Clear();
			this.PuzzleScripts.Clear();

			this.DisposeScripts();
			ChannelServer.Instance.World.RemoveScriptedEntities();
			ChannelServer.Instance.World.SpawnManager.Clear();
			this.Load();
		}