// ----------------------------------------------------------------------- //
//
// assetsweep.cpp -- does every level's every prop actually resolve?
//
// ⚠️ WHY THIS EXISTS. The foliage bug (HANDOVER.md) was invisible for weeks
// because the props under suspicion carried no cut-outs, so nothing pointed at
// the one that did. The general form of that failure is: a level looks
// plausible while some asset silently falls back, and nobody orbits the one
// object that would show it.
//
// So this asks, for EVERY object in EVERY shipped world, the questions whose
// answers a picture would only give one prop at a time:
//
// * does the .abc load at all?
// * does every skin in its `Skin` list load?
// * does the model ask for MORE texture slots than the level supplies?
// (a piece whose texture index is past the end draws untextured -- flat
// shaded -- which is exactly what the broken foliage looked like)
//
// ⚠️ It reports rather than asserts. A missing asset is not necessarily a port
// bug: the shipped data really does contain objects the game never draws. The
// output is a worklist to orbit, not a gate.
//
// USAGE
// assetsweep
[...] every world
// assetsweep --world NAME just one
//
// ----------------------------------------------------------------------- //
#include "windows.h"
#include "lithtech.h"
#include "mfcstub.h"
#include "ltworld.h"
#include "ltproptypes.h"
#include "ltabc.h"
#include "ltdtx.h"
#include "ltrezfile.h"
#include "ltfilemgr.h"
#include
#include
#include
#include
#include
#include
#include