예제 #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;
        }
예제 #2
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 ? "" + InCombat : ""));
            nvList.Add(new NameValuePair("Name", flag ? "" + Name : ""));
            nvList.Add(new NameValuePair("Mounted", flag ? "" + IsMounted : ""));

            return(nvList);
        }
예제 #3
0
파일: Debug.cs 프로젝트: civicacid/myevo
 private static NameValuePair[] GetTargetNameValuePairs(PUnit target)
 {
     var wuUtils = new PUnitUtils(target.BaseAddress);
     return wuUtils.GetNameValuePairs().ToArray();
 }