mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-17 01:41:06 +00:00
6b0f6176f6
git-svn-id: https://svn.eduke32.com/eduke32@2813 1a8010ca-5511-0410-912e-c29ae57300e0
26 lines
501 B
Lua
26 lines
501 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)
|
|
end
|
|
|
|
function failure(fn, errmsg)
|
|
printf("--- %s: %s", fn, errmsg)
|
|
end
|