Added getKeys to OffsetGroup (for easy lua access to all things that memory.xml has)
parent
2008ac5564
commit
dc78e99f75
@ -1 +1 @@
|
||||
function findVectorsSized(size)
local ret={}
local text=GetTextRegion()
for k,v in pairs(offsets.getvectors()) do
if GetRegionIn2(k)~=nil then
--if v>4 then
local tv=engine.peek(k,ptr_vector)
if tv.size() == size then
print(string.format("%x is size %d",k,size))
table.insert(ret,k)
end
end
end
return ret
end
function findMaterial(mattype,matname) --currently only stones
local tbl=BuildMaterialTable()
return tbl[matname]
end
|
||||
function findVectorsSized(size)
local ret={}
local text=GetTextRegion()
for k,v in pairs(offsets.getvectors()) do
if GetRegionIn2(k)~=nil then
--if v>4 then
local tv=engine.peek(k,ptr_vector)
if tv:size() == size then
print(string.format("%x is size %d",k,size))
table.insert(ret,k)
end
end
end
return ret
end
function findMaterial(mattype,matname) --currently only stones
local tbl=BuildMaterialTable()
return tbl[matname]
end
|
Loading…
Reference in New Issue