public FileInfo AddNPC(string filePath) { var npc = NPCDescriptor.Create(); npc.Name = Path.GetFileNameWithoutExtension(filePath); npc.Save(filePath); var npcFile = new FileInfo(filePath); _npcFiles.Add(filePath, npcFile); this.NPCAdded?.Invoke(this, new FileEventArgs(npcFile)); return(npcFile); }