예제 #1
0
 // Hall mode - Watcher Mode
 public AoDisplay(string sv, int room, ushort uid,
     string name, bool record, bool msglog)
 {
     InitializeComponent();
     Init();
     mzi = null; mvisi = null;
     VW.Cyvi vi = new VW.Cyvi(this);
     visiThread = new Thread(delegate()
     {
         int port = Base.NetworkCode.HALL_PORT + room;
         vi.Init();
         mvisi = new XIVisi(uid, name, 0, vi, sv, room, record, msglog, true, this);
         mvisi.RunAsync();
     });
     visiThread.Start();
     yhTV = new OI.AoTV(this);
     tvDict = new Dictionary<string, OI.Television>();
 }
예제 #2
0
 // Hall mode - Gamer mode
 public AoDisplay(string sv, string nick, int ava,
     bool record, bool msglog, int mode, int level, string[] trainer, int team)
 {
     InitializeComponent();
     var ass = System.Reflection.Assembly.GetExecutingAssembly().GetName();
     ResetGameTitle(ass.Name + " v" + ass.Version);
     Init();
     mzi = null; mvisi = null;
     visiThread = new Thread(delegate()
     {
         int port = Base.NetworkCode.HALL_PORT;
         mzi = new ZI(nick, ava, sv, port, team, mode, level, trainer, record, msglog, this);
         mzi.StartHall();
     });
     visiThread.Start();
     yhTV = new OI.AoTV(this);
     tvDict = new Dictionary<string, OI.Television>();
 }
예제 #3
0
 // Direct mode
 public AoDisplay(string sv, string nick, int ava, bool watch,
     bool record, bool msglog, int room, int team)
 {
     InitializeComponent();
     Init();
     mzi = null; mvisi = null;
     visiThread = new Thread(delegate()
     {
         int port = Base.NetworkCode.DIR_PORT + room;
         if (port >= 65535)
             port = Base.NetworkCode.DIR_PORT;
         mvisi = XIVisi.CreateInDirectConnect(sv, port, nick,
             ava, team, record, watch, msglog, this);
         mvisi.RunAsync();
     });
     visiThread.Start();
     yhTV = new OI.AoTV(this);
     tvDict = new Dictionary<string, OI.Television>();
 }
예제 #4
0
 // Reconnection mode
 public AoDisplay(string nick, string sv, int room, bool record, bool msglog)
 {
     InitializeComponent();
     var ass = System.Reflection.Assembly.GetExecutingAssembly().GetName();
     ResetGameTitle(ass.Name + " v" + ass.Version);
     Init();
     mzi = null; mvisi = null;
     visiThread = new Thread(delegate()
     {
         int port = Base.NetworkCode.HALL_PORT;
         mzi = ZI.CreateResumeHall(nick, sv, port, record, msglog, room, this);
         mzi.ResumeHall();
     });
     visiThread.Start();
     yhTV = new OI.AoTV(this);
     tvDict = new Dictionary<string, OI.Television>();
 }
예제 #5
0
 // Replay mode
 public AoDisplay(string fileName)
 {
     InitializeComponent();
     Init();
     mzi = null; mvisi = null;
     yfSpeeder.Visibility = Visibility.Visible;
     visiThread = new Thread(delegate()
     {
         mvisi = new XIVisi(fileName, this);
         mvisi.RunAsync();
     });
     visiThread.Start();
     yhTV = new OI.AoTV(this);
     tvDict = new Dictionary<string, OI.Television>();
 }