public GameSystemManager() { GameSystem = new GameSystem(); _characterConverter = new CharacterConverter(GameSystem); var root = AppDomain.CurrentDomain.BaseDirectory; CoreRuleBookDirectory = Path.Combine(root, "SourceBooks", "CoreRuleBook"); var userProfile = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); CharacterDirectory = Path.Combine(userProfile, "Pathfinder"); Characters = new List<CharacterFileInfo>(); }
public ReferenceWindow(GameSystem gameSystem) { InitializeComponent(); DataContext = new ReferenceWindowViewModel { SkillListings = (from sl in gameSystem.SkillListings orderby sl.Name select new SkillListingViewModel(sl)).ToList(), Sizes = (from s in gameSystem.Sizes orderby s.Modifier select s).ToList(), RaceListings = (from r in gameSystem.RaceListings orderby r.Name select new RaceListingViewModel(r)).ToList() }; }