コード例 #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="typ">The material type.</param>
 /// <param name="target">The location of the material.</param>
 public OutfitMaterialTarget(OutfitMaterialType typ, RendererMaterialPtr target)
 {
     this.m_Type   = typ;
     this.m_Target = target;
 }
コード例 #2
0
        /// <summary>
        /// Sets the specified outfit material target, or adds a new material target if the type does not exist.
        /// </summary>
        /// <remarks>
        /// <para>
        /// This method is meant for use during configuration of the outfit.  It is not normal to change material
        /// targets while the outfit is in use.
        /// </para>
        /// </remarks>
        /// <param name="outfit">The outfit. (Required)</param>
        /// <param name="typ">The material type.</param>
        /// <param name="target">The new target for the material type.</param>
        public static void AddMaterialTarget(StandardOutfit outfit, OutfitMaterialType typ, RendererMaterialPtr target)
        {
            // Design note: This is a static member because its use is expected to be limited to outfit
            // initialization.  Don't want to unnecessarily clutter the instance API.

            outfit.m_OutfitMaterialTargets.AddTarget(typ, target);
        }