public Dorm() { InitializeComponent(); Tuple = new LibGroup(); dict = new Dictionary<int, string>(); var ass = System.Reflection.Assembly.GetExecutingAssembly().GetName(); Title = ass.Name + " v" + ass.Version + " 录像控制台"; CurrentMode = RunMode.NORMAL; if (File.Exists("PSDDorm.AKB48Show!")) { TransTab.Visibility = Visibility.Visible; mainAngleCheckBox.Checked += (s, e) => mainAngleNumber.IsEnabled = true; mainAngleCheckBox.Unchecked += (s, e) => mainAngleNumber.IsEnabled = false; } else TransTab.Visibility = Visibility.Collapsed; }
public ZeroDisplay(XIClient xic) { this.xic = xic; this.tuple = xic.Tuple; }
public string ToSerialMessage(LibGroup tuple) { List<object> uList = new List<object>(); foreach (Player py in Garden.Values) { uList.Add(py.Uid); foreach (string keyPair in StatusKey) { int serp = keyPair.IndexOf(','); string key = keyPair.Substring(serp + 1); switch (key) { case "hero": uList.Add(py.SelectHero); break; case "state": int state = 0; state |= !py.IsAlive ? 0 : 1; state |= !py.Loved ? 0 : 2; state |= !py.Immobilized ? 0 : 4; state |= !py.PetDisabled ? 0 : 8; uList.Add(state); break; case "hp": uList.Add(py.HP); break; case "hpa": uList.Add(py.HPb); break; case "str": uList.Add(py.STR); break; case "stra": uList.Add(PoolEnabled ? py.STRa : py.STR); break; case "dex": uList.Add(py.DEX); break; case "dexa": uList.Add(PoolEnabled ? py.DEXa : py.DEX); break; case "tuxCount": uList.Add(py.Tux.Count); break; case "wp": uList.Add(py.Weapon); break; case "am": uList.Add(py.Armor); break; case "tr": uList.Add(py.Trove); break; case "exq": uList.Add(py.ExEquip); break; case "lug": Luggage lug = tuple.TL.DecodeTux(py.Trove) as Luggage; uList.Add(lug != null ? lug.Capacities.ListToString() : "0"); break; case "guard": uList.Add(py.Guardian); break; case "coss": uList.Add(py.Coss.Count > 0 ? py.Coss.Peek() : 0); break; case "pet": uList.Add(py.Pets.Where(p => p != 0).ToList().ListToString()); break; case "excard": uList.Add(py.ExCards.ListToString()); break; case "token": uList.Add(py.TokenCount); break; case "fakeq": uList.Add(py.Fakeq.Select(p => p.Key + "," + p.Value).ToList().ListToString()); break; case "rune": uList.Add(py.Runes.ListToString()); break; case "excl": uList.Add(py.TokenExcl.ListToString()); break; case "tar": uList.Add(py.TokenTars.ListToString()); break; case "awake": uList.Add(py.TokenAwake ? 1 : 0); break; case "foldsz": uList.Add(py.TokenFold.Count); break; case "escue": uList.Add(py.Escue.ListToString()); break; } } } return uList.Count > 0 ? ("H09G," + string.Join(",", string.Join(",", uList))) : ""; }
public ZeroDisplay(XIVisi xiv) { this.xiv = xiv; this.tuple = xiv.Tuple; }
private void CommonConstruct() { Tuple = new LibGroup(); listOfThreads = new List<Thread>(); zd = new ZeroDisplay(this); Z0D = new Dictionary<ushort, ZeroPlayer>(); //msgPool = new BlockingCollection<string>(); unhandledMsg = new Queue<string>(); GameGraceEnd = false; if (WI is VW.Bywi) (WI as VW.Bywi).OnLoseConnection += ReportConnectionLost; }