Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.08 KB | None | 0 0
  1. List<uint[]> PlayOrder = new List<uint[]>();
  2.  
  3. uint[] DialPart1 = { 0x206F, 0x5A69 }; PlayOrder.Add(DialPart1);
  4. uint[] DialPart2 = { 0x206F, 0x5A5F }; PlayOrder.Add(DialPart2);
  5. uint[] DialPart3 = { 0x206F, 0x5A59 }; PlayOrder.Add(DialPart3);
  6. uint[] DialPart4 = { 0x206F, 0x5A53 }; PlayOrder.Add(DialPart4);
  7. uint[] DawkinsCall = { 0x206C, 0xA2 }; PlayOrder.Add(DawkinsCall);
  8. uint[] PreAttack = { 0x206B, 0x9E }; PlayOrder.Add(PreAttack);
  9. uint[] SwatAttack = { 0x206A, 0x5AFA }; PlayOrder.Add(SwatAttack);
  10. uint[] TooLate = { 0x206D, 0xA4 }; PlayOrder.Add(TooLate);
  11.  
  12. // load areas
  13. Communicator SceneCom = IW.IW_GameDict_Setup[Attributes.DATA_CONTAINER][0x21D].Communicator;
  14. Communicator.Att_Area Area_Pre = SceneCom.DataContainer().Dictionary[Attributes.AREA].ElementAt(0).Value.Area();
  15. Communicator.Att_Area Area_TooLate = SceneCom.DataContainer().Dictionary[Attributes.AREA].ElementAt(2).Value.Area();
  16.  
  17. // Set active area
  18. Communicator.Att_Area ActiveArea = Area_Pre;
  19. for (int i = 0; i < ActiveArea.AreaNodes.Count; i++)
  20.     ActiveArea.AreaNodes[i].SetVisible(true);
  21.  
  22. // load movies
  23. TimelineEngine[] Timelines = new TimelineEngine[PlayOrder.Count];
  24. for (int i = 0; i < PlayOrder.Count; i++)
  25. {
  26.     IW_Base.Communicator MovieDC = IW.IW_GameDict_Setup[Attributes.DATA_CONTAINER][PlayOrder[i][0]].Communicator;
  27.     IW_Base.Communicator MovieCom = MovieDC.DataContainer().Dictionary[Attributes.MOVIE][PlayOrder[i][1]];
  28.     Timelines[i] = new TimelineEngine(IW);
  29.     IW_Base.Communicator.Att_Movie.MovieReader Reader = new Communicator.Att_Movie.MovieReader(MovieCom.Movie(), IW, Timelines[i]);
  30. }
  31.  
  32. IW.Engine.StartRendering = true;
  33.  
  34. for (int i = 0; i < PlayOrder.Count; i++)
  35. {
  36.     if (i == 7)  // TooLate
  37.     {
  38.         for (int a = 0; a < ActiveArea.AreaNodes.Count; a++)
  39.             ActiveArea.AreaNodes[a].SetVisible(false);
  40.         ActiveArea = Area_TooLate;
  41.         for (int a = 0; a < ActiveArea.AreaNodes.Count; a++)
  42.             ActiveArea.AreaNodes[a].SetVisible(true);
  43.     }
  44.  
  45.     Timelines[i].Start();
  46.  
  47.     while (Timelines[i].IsPlaying())
  48.     {
  49.         Thread.Sleep(20);
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement