Пример #1
0
        /// <summary>Build a new scalable setting.</summary>
        /// <param name="values">The values of the scalable setting. Must not be <c>null</c>.</param>
        /// <param name="schemaId">The of the schema for this scalable setting.</param>
        public ScalableSetting(T[] values, ScalableSettingSchemaId schemaId)
        {
            Assert.IsNotNull(values, $"{nameof(values)} must not be null.");

            m_Values   = values;
            m_SchemaId = schemaId;
        }
Пример #2
0
 /// <summary>
 /// Instantiate a new PlanarReflectionAtlasResolution scalable setting.
 /// </summary>
 /// <param name="values">The values of the settings</param>
 /// <param name="schemaId">The schema of the setting.</param>
 public PlanarReflectionAtlasResolutionScalableSetting(PlanarReflectionAtlasResolution[] values, ScalableSettingSchemaId schemaId)
     : base(values, schemaId)
 {
 }
 /// <summary>Get the <see cref="ScalableSettingSchema"/> for the provided <paramref name="id"/>.</summary>
 /// <param name="id">Id to search for.</param>
 /// <returns>The schema if it exists, otherwise <c>null</c>.</returns>
 internal static ScalableSettingSchema GetSchemaOrNull(ScalableSettingSchemaId id)
 => Schemas.TryGetValue(id, out var value) ? value : null;