예제 #1
0
        private void SetupTraits()
        {
            var propertyMap = GetPropertyMap();

            if (Ecosystem != null)
            {
                var variableMap = Ecosystem.GetTrainerMap(_propertyMap);
                _traitStore.Setup(variableMap, _propertyMap.CreateList(this), Traits);
                Traits.Setup(Ecosystem.TrainerSchema, this);
            }
            else
            {
                var variableMap = new VariableMap(0).Add(_propertyMap);
                _traitStore.Setup(variableMap, _propertyMap.CreateList(this));
            }
        }