예제 #1
0
        /// <summary>
        /// Sets the given efficacy in the version group with the given ID.
        /// </summary>
        public void SetEfficacySet(int versionGroupId, EfficacySet efficacy)
        {
            EfficacySets.RemoveAll(m => m.Id == versionGroupId);

            var mapping = new WithId <EfficacySet>(versionGroupId, efficacy);

            EfficacySets.Add(mapping);
        }
예제 #2
0
        /// <summary>
        /// Sets the given efficacy in the version group with the given ID.
        /// </summary>
        public void Add(int typeId, double multiplier)
        {
            EfficacyMultipliers.RemoveAll(m => m.Id == typeId);

            var entry = new WithId <double>(typeId, multiplier);

            EfficacyMultipliers.Add(entry);
        }