public GroundSpawn GetGroundSpawn(int baseAddress) { GroundSpawn result = new GroundSpawn(); result.memoryAddress = baseAddress; result.previous = ReadInt(baseAddress, (int)GroundOffset.PREVIOUS); result.next = ReadInt(baseAddress, (int)GroundOffset.NEXT); result.id = ReadInt(baseAddress, (int)GroundOffset.ID); result.dropID = ReadInt(baseAddress, (int)GroundOffset.DROPID); result.name = ReadString(baseAddress, (int)GroundOffset.NAME, 25); result.xLoc = ReadFloat(baseAddress, (int)GroundOffset.X); result.yLoc = ReadFloat(baseAddress, (int)GroundOffset.Y); result.zLoc = ReadFloat(baseAddress, (int)GroundOffset.Z); return result; }
//ground spawns public List<GroundSpawn> GetGroundSpawnList() { List<GroundSpawn> groundList = new List<GroundSpawn>(); GroundSpawn tmpGround = new GroundSpawn(); int next = ReadInt((int)EQMemoryAddress.GROUND_HEADER, 0); while (next != 0) { tmpGround = GetGroundSpawn(next); groundList.Add(tmpGround); next = tmpGround.next; } return groundList; }