Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.46 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace UFControl
  8. {
  9.     class UnionFilms
  10.     {
  11.  
  12.         [Loading()]
  13.         public static void SetupUnionFilms()
  14.         {
  15.             Manager.createInterface("DolbyServer", "DSS220", "COM1");
  16.             Manager.createInterface("Lights", "UFLights", "COM2");
  17.             Manager.createInterface("Screen", "UFScreen", "COM3");
  18.         }
  19.  
  20.         [ScriptAttribute("DolbyServer", "m239")]
  21.         public static void highLights()
  22.         {
  23.             Manager.getInterface("Screen").sendCommand("m239");
  24.         }
  25.  
  26.         [ScriptAttribute("DolbyServer", "l1")]
  27.         public static void highLights()
  28.         {
  29.             Manager.getInterface("Lights").sendCommand("High");
  30.         }
  31.  
  32.         [ScriptAttribute("DolbyServer", "l2")]
  33.         public static void customLights()
  34.         {
  35.             Manager.getInterface("Lights").sendCommand("Custom");
  36.         }
  37.  
  38.         [ScriptAttribute("DolbyServer", "l3")]
  39.         public static void midLights()
  40.         {
  41.             Manager.getInterface("Lights").sendCommand("Mid");
  42.         }
  43.  
  44.         [ScriptAttribute("DolbyServer", "l4")]
  45.         public static void lowLights()
  46.         {
  47.             Manager.getInterface("Lights").sendCommand("Low");
  48.         }
  49.  
  50.         [ScriptAttribute("DolbyServer", "l5")]
  51.         public static void offLights()
  52.         {
  53.             Manager.getInterface("Lights").sendCommand("Off");
  54.         }
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement