예제 #1
0
파일: SNOReader.cs 프로젝트: usuket/Works
        public SNOReader(DiabloIII d3, int address)
        {
            data = new Dictionary<int, int>();

            int ptr = d3.memory.ReadInt(address, d3.offsets[Offset.SNOOffset1]);
            int count = d3.memory.ReadInt(ptr + d3.offsets[Offset.SNOOffset2]);
            int curOff = d3.memory.ReadInt(ptr + d3.offsets[Offset.SNOOffset3]) + d3.offsets[Offset.SNOOffset4];

            for (int i = 0; i <= 4096; i++)
            {
                int curSNOoff = d3.memory.ReadInt(curOff);
                int curSNOid = d3.memory.ReadInt(curSNOoff);

                if (curSNOoff == 0 && curSNOid == 0)
                    break;

                try
                {
                    data.Add(curSNOid, curSNOoff);
                }
                catch (Exception)
                {
                    //removed logging because it was not needed
                }

                curOff += 0x10;
            }
        }
예제 #2
0
파일: Item.cs 프로젝트: usuket/Works
 public Item(DiabloIII d3, int address)
     : base(d3, address)
 {
     GetItemData();
 }
예제 #3
0
파일: Actor.cs 프로젝트: usuket/Works
 public Actor(Actor other)
 {
     this.address = other.address;
     this.d3 = other.d3;
     CachedID = ActorID;
 }
예제 #4
0
파일: Actor.cs 프로젝트: usuket/Works
 public Actor(DiabloIII d3, int address)
 {
     this.d3 = d3;
     this.address = address;
     CachedID = ActorID;
 }
예제 #5
0
 public ItemFinder(int processID)
 {
     d3 = new DiabloIII(processID);
     IgnoreList = new List<ACDActor>();
 }
예제 #6
0
 public ItemFinder()
 {
     d3 = new DiabloIII();
     IgnoreList = new List<ACDActor>();
 }
예제 #7
0
파일: ACDActor.cs 프로젝트: usuket/Works
 public ACDActor(DiabloIII d3, int address)
     : base(d3, address)
 {
     CachedACDID = ACDID;
     GetACDAddress();
 }
예제 #8
0
 public ItemFinder(int processID)
 {
     d3         = new DiabloIII(processID);
     IgnoreList = new List <ACDActor>();
 }
예제 #9
0
 public ItemFinder()
 {
     d3         = new DiabloIII();
     IgnoreList = new List <ACDActor>();
 }