Esempio n. 1
0
        public override void ClientInitialize()
        {
            ClientInputManager.RegisterButtonsEnum <AutomatonButton>();

            AutomatonManager.Init();

            BootstrapperClientGame.InitCallback += GameInitHandler;

            BootstrapperClientGame.ResetCallback += ResetHandler;
        }
Esempio n. 2
0
 protected override void WindowClosed()
 {
     AutomatonManager.SaveSettings();
     base.WindowClosed();
 }
Esempio n. 3
0
 public ClientComponentAutomaton()
 {
     featuresDictionary = AutomatonManager.GetFeaturesDictionary();
 }
Esempio n. 4
0
 public ViewModelMainWindow()
 {
     AllSettings = new ObservableCollection <ViewModelSettings>(
         AutomatonManager.GetAllSettings().Select(s => new ViewModelSettings(s)));
     AutomatonManager.IsEnabledChanged += OnIsEnabledChanged;
 }
Esempio n. 5
0
 public ViewModelAutomatonSettings()
 {
     Features = AutomatonManager.GetFeatures();
     AutomatonManager.IsEnabledChanged +=
         () => NotifyPropertyChanged(nameof(IsEnabled));
 }