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

            AutomatonManager.Init();

            BootstrapperClientGame.InitCallback += GameInitHandler;

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