mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-16 15:40:58 +00:00
a648522c68
git-svn-id: https://svn.eduke32.com/eduke32@3657 1a8010ca-5511-0410-912e-c29ae57300e0
25 lines
576 B
Lua
25 lines
576 B
Lua
|
|
-- Print out some statistics for a BUILD map,
|
|
-- foreachmap module.
|
|
|
|
local string = require "string"
|
|
local print = print
|
|
|
|
module(...)
|
|
|
|
|
|
local function printf(fmt, ...)
|
|
print(string.format(fmt, ...))
|
|
end
|
|
|
|
|
|
function success(map, fn)
|
|
printf("--- %s:", fn)
|
|
|
|
printf(" version: %d", map.version)
|
|
printf(" numsectors: %d\n numwalls: %d\n numsprites: %d",
|
|
map.numsectors, map.numwalls, map.numsprites)
|
|
printf(" walls/sector: %.02f\n sprites/sector: %.02f",
|
|
map.numwalls/map.numsectors, map.numsprites/map.numsectors)
|
|
printf("")
|
|
end
|