Exemple #1
0
 /// <summary>
 /// Apply energy colors for a specific <see cref="TransformationForm"/>.
 /// </summary>
 /// <param name="form">Transformation form.</param>
 /// <param name="colors">Energy colors to apply.</param>
 void ApplyEnergyColors(TransformationForm form, Color[] colors)
 {
     if (form == TransformationForm.Human)
     {
         SetHumanEnergyColors(colors[0], colors[1]);
     }
     else if (form == TransformationForm.Deku)
     {
         SetDekuEnergyColors(colors[0]);
     }
     else if (form == TransformationForm.Goron)
     {
         var options = new GoronColorOptions(colors[0], colors[1], colors[2]);
         SetGoronEnergyColors(options);
     }
     else if (form == TransformationForm.Zora)
     {
         SetZoraEnergyColors(colors[0]);
     }
     else if (form == TransformationForm.FierceDeity)
     {
         SetFierceDeityEnergyColors(colors[0]);
     }
 }
 public static byte Id(this TransformationForm form)
 {
     return(form.GetAttribute <IdAttribute>().Id);
 }
 public static Instrument?DefaultInstrument(this TransformationForm form)
 {
     return(form.GetAttribute <DefaultInstrumentAttribute>()?.Default);
 }