Beispiel #1
0
        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;
        }
Beispiel #2
0
 private static NameValuePair[] GetTargetNameValuePairs(PUnit target)
 {
     var wuUtils = new PUnitUtils(target.BaseAddress);
     return wuUtils.GetNameValuePairs().ToArray();
 }