public static SetLightDirective GadgetColor(this SkillResponse response, string color, IEnumerable <string> gadgetIds, int durationMilliseconds = 1000)
        {
            var setLight = new SetLightDirective
            {
                TargetGadgets = gadgetIds == null ? null : new List <string>(gadgetIds),
                Parameters    =
                    SetLightParameter.Create(
                        SetLightAnimation.CreateSingle(AnimationSegment.Create(color, durationMilliseconds)))
            };

            SetDirective(response, setLight);

            return(setLight);
        }
Example #2
0
 public static SetLightDirective Create(IEnumerable <string> targetGadgets, SetLightParameter parameter)
 {
     return(new SetLightDirective {
         TargetGadgets = targetGadgets?.ToList(), Parameters = parameter
     });
 }
Example #3
0
 public static SetLightDirective Create(SetLightParameter parameter)
 {
     return(Create(null, parameter));
 }