public List<NameValuePair> GetNameValuePairs() { Boolean flag = BaseAddress != 0; var nvList = new List<NameValuePair>(); var aBase = new PUnitUtils(BaseAddress); List<NameValuePair> baseNvList = aBase.GetNameValuePairs(); nvList.AddRange(baseNvList); nvList.Add(new NameValuePair("", "")); nvList.Add(new NameValuePair("PPLayer", "")); nvList.Add(new NameValuePair("Ghost", flag ? "" + IsGhost : "")); nvList.Add(new NameValuePair("Combat", flag ? "" + IsInCombat : "")); nvList.Add(new NameValuePair("Name", flag ? "" + Name : "")); nvList.Add(new NameValuePair("Mounted", flag ? "" + IsMounted : "")); return nvList; }
public List <NameValuePair> GetNameValuePairs() { Boolean flag = BaseAddress != 0; var nvList = new List <NameValuePair>(); var aBase = new PUnitUtils(BaseAddress); List <NameValuePair> baseNvList = aBase.GetNameValuePairs(); nvList.AddRange(baseNvList); nvList.Add(new NameValuePair("", "")); nvList.Add(new NameValuePair("PPLayer", "")); nvList.Add(new NameValuePair("Ghost", flag ? "" + IsGhost : "")); nvList.Add(new NameValuePair("Combat", flag ? "" + InCombat : "")); nvList.Add(new NameValuePair("Name", flag ? "" + Name : "")); nvList.Add(new NameValuePair("Mounted", flag ? "" + IsMounted : "")); return(nvList); }
private static NameValuePair[] GetTargetNameValuePairs(PUnit target) { var wuUtils = new PUnitUtils(target.BaseAddress); return wuUtils.GetNameValuePairs().ToArray(); }