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

            LoadTestValuesProviders();

            _triggers.CollectionChanged += Triggers_CollectionChanged;
        }
Exemplo 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);
            }
        }