public void Load(string pathText) { var resource = resourcePool.FindFile(pathText); if (resource == null) { throw new FileNotFoundException($"Could not find world at {pathText}"); } Load(resource); }