Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var curObj = Wow.Read<uint>(CurMgr + 0xAC);
- var objectList = new List<WoWObject>();
- while (curObj != 0 && (curObj & 1) == 0)
- {
- var cGuid = Wow.Read<ulong>(curObj + 0x30);
- var curType = (WoWObjectType)Wow.Read<uint>(curObj + 0x14);
- switch (curType)
- {
- WoWObjectType.GameObject:
- objectList.Add(new WoWGameObjec(curObj); // derieves from WoWObject so we can add it as a WoWGameObject :o
- break;
- default:
- objectList.Add(new WoWObject(curObj);
- break;
- }
- var nextObj = Wow.Read<uint>(curObj + 0x3C);
- if (nextObj == curObj)
- break;
- curObj = nextObj;
- }
Add Comment
Please, Sign In to add comment