<commit_before>﻿module ViewHandler

open IView
open MainMenuView
open GameState
open System
open ViewType
open ExploreView
open LocationView

let private ViewCollection:Collections.Generic.IDictionary<ViewType, IView> = dict [
                                    (Menu, new MainMenuView() :> IView);
                                    (Missions, new MissionsView() :> IView);
                                    (Ship, new ShipView() :> IView);
                                    (Crew, new CrewView() :> IView);
                                    (Storage, new StorageView() :> IView);
                                    (Explore, new ExploreView() :> IView);
                                    (Location, new LocationView() :> IView);
                                  ]

let handle state = 
        Console.Clear()
        let _gamestate = ViewCollection.[state.CurrentView].innerLoop state
        _gamestate<commit_msg>adding missing views<commit_after>﻿module ViewHandler

open IView
open MainMenuView
open GameState
open System
open ViewType
open ExploreView
open LocationView
open MissionView
open ShipView
open CrewView
open StorageView

let private ViewCollection:Collections.Generic.IDictionary<ViewType, IView> = dict [
                                    (Menu, new MainMenuView() :> IView);
                                    (Missions, new MissionsView() :> IView);
                                    (Ship, new ShipView() :> IView);
                                    (Crew, new CrewView() :> IView);
                                    (Storage, new StorageView() :> IView);
                                    (Explore, new ExploreView() :> IView);
                                    (Location, new LocationView() :> IView);
                                  ]

let handle state = 
        Console.Clear()
        let _gamestate = ViewCollection.[state.CurrentView].innerLoop state
        _gamestate
{'fraction_non_alphanumeric': 0.08199273482096522, 'fraction_numerical': 0.0, 'mean_word_length': 1.443599493029151, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3085186', 'n_tokens_mistral': 480, 'n_tokens_neox': 458, 'n_words': 125}