| tympanicblock61 How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 17 Nov 2024
 Posts: 8
 
 
 | 
			
				|  Posted: Mon Nov 25, 2024 12:53 am    Post subject: more mono fun |   |  
				| 
 |  
				| i will be posting any mono functions or utils i make here 
 handle a System.Collections.Generic.List
 takes a pointer to a System.Collections.Generic.List and returns a table list of pointers to items
 
  	  | Code: |  	  | function getListPointers(listPointer)
 local size = readInteger(listPointer + 0x18)
 local itemsArrayPointer = readPointer(listPointer + 0x10)
 local items = {}
 local offset = 0x18+0x08 -- first item (Count) + index offset
 for i = 0, size-1 do
 local itemPointer = readPointer(itemsArrayPointer + offset)
 table.insert(items, itemPointer)
 offset=offset+0x08
 end
 return items
 end
 
 | 
 |  |