Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.08 KB | None | 0 0
  1.                     if (oldTag.IsInGroup("bink"))
  2.                     {
  3.                         var location = ((Bink)tagDefinition).Resource.GetLocation();
  4.                         var index = ((Bink)tagDefinition).Resource.Index;
  5.  
  6.                         switch (location.ToString().ToLower())
  7.                         {
  8.                             case "audio":
  9.                                 portAudio();
  10.                                 break;
  11.                             case "resources":
  12.                                 portResource();
  13.                                 break;
  14.                             case "textures":
  15.                                 portTexture();
  16.                                 break;
  17.                             case "textures_b":
  18.                                 portTexture_B();
  19.                                 break;
  20.                             case "video":
  21.                                 portVideo();
  22.                                 break;
  23.                             default:
  24.                                 break;
  25.                         }
  26.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement