public void SaveAgentBinary(Agent agentToSave, GeneticSettings geneticSettings, string filePath) { SavedAgent savedAgent = new SavedAgent(agentToSave, geneticSettings); //string directory = GeneticConstants.INTERNAL_DIRECTORY_AGENTS_BINARY; SaveObject(savedAgent, filePath); }
public SavedAgent LoadAgentBinary(string filePath) { SavedAgent loadedAgent = null; loadedAgent = LoadObject <SavedAgent>(filePath); return(loadedAgent); }