private void SetupTraits() { var propertyMap = GetPropertyMap(); var variableMap = Ecosystem.GetSpeciesMap(propertyMap); Traits.Setup(Ecosystem.SpeciesSchema, this); _traitStore.Setup(variableMap, propertyMap.CreateList(this), Traits); }
private void SetupTraits() { var propertyMap = GetPropertyMap(); var variableMap = Ability.Ecosystem.GetMoveMap(propertyMap); _traitStore.Setup(variableMap, propertyMap.CreateList(this), Traits); Traits.Setup(Ability.Ecosystem.MoveSchema, this); }
private void SetupTraits() { var propertyMap = GetPropertyMap(); var variableMap = Species.Ecosystem.GetCreatureMap(propertyMap); _traitStore.Setup(variableMap, propertyMap.CreateList(this), new VariableListener(this, Traits)); Traits.Setup(Species.Ecosystem.CreatureSchema, this); }
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)); } }
protected virtual void SetupVariables() { if (_propertyMap == null) { _propertyMap = new PropertyMap <Npc>(); AddPropertiesToMap(_propertyMap); } if (_variableMap == null || _variableMap.Version != WorldManager.Instance.World.NpcSchema.Version) { _variableMap = new VariableMap(WorldManager.Instance.World.NpcSchema.Version) .Add(_propertyMap) .Add(WorldManager.Instance.World.NpcSchema); } _variableStore.Setup(_variableMap, new PropertyList <Npc>(this, _propertyMap), _variables); _variables.Setup(WorldManager.Instance.World.NpcSchema, this); }
protected virtual void SetupVariables() { if (_propertyMap == null) { _propertyMap = new PropertyMap <ZoneData>(); AddPropertiesToMap(_propertyMap); } if (_variableMap == null || _variableMap.Version != Zone.Schema.Version) { _variableMap = new VariableMap(Zone.Schema.Version) .Add(_propertyMap) .Add(Zone.Schema); } _variableStore.Setup(_variableMap, new PropertyList <ZoneData>(this, _propertyMap), new VariableListener(this, _variables)); _variables.Setup(Zone.Schema, this); }
protected virtual void SetupVariables(VariableList savedVariables) { if (_propertyMap == null) { _propertyMap = new PropertyMap <Player>(); AddPropertiesToMap(_propertyMap); } if (_variableMap == null || _variableMap.Version != WorldManager.Instance.World.PlayerSchema.Version) { _variableMap = new VariableMap(WorldManager.Instance.World.PlayerSchema.Version) .Add(_propertyMap) .Add(WorldManager.Instance.World.PlayerSchema); } _variableStore.Setup(_variableMap, new PropertyList <Player>(this, _propertyMap), new VariableListener(this, _variables)); _variables.Setup(WorldManager.Instance.World.PlayerSchema, this); _variables.LoadFrom(savedVariables, VariableDefinition.Saved); }