public void AddEncounter(EncounterNodeData encounter)
{
// TODO, get relative path
GameMasterNode encounterNodeFile = encounter.NodeFile;
string filePath = encounterNodeFile.Path;
string selfPath = NodeFile.Directory + '/';
filePath = "file(" + filePath.Replace(selfPath, "") + ")";
mEncounters.Add(encounterNodeFile.Name, filePath);
mEncounterFiles.Add(encounterNodeFile);
NodeFile.Json["encounters"][encounterNodeFile.Name] = filePath;
NodeFile.IsModified = true;
NodeFile.SaveIfNecessary();
}