Esempio n. 1
0
        public PlayerAttributesSimulatorViewModel(IServiceLocator serviceLocator, TriggerViewModelCollection triggers)
        {
            _serviceLocator = serviceLocator;
            _triggers       = triggers;
            _playerData     = MainProxyAdapter.GetPlayerData();

            LoadTestValuesProviders();

            _triggers.CollectionChanged += Triggers_CollectionChanged;
        }
Esempio n. 2
0
        private void SetPlayerAttributes(PlayerAccountAttribute[] attributes, string[] properties)
        {
            var playerData = MainProxyAdapter.GetPlayerData();

            foreach (var a in attributes)
            {
                SetpLayerAttributeValue(a.AttributeType, a.Value, playerData);
            }

            MainProxyAdapter.SetPlayerData(playerData);

            _playerData = playerData;

            foreach (var propertyName in properties)
            {
                OnPropertyChanged(propertyName);
            }
        }