GetNumLumps
Jump to navigation
Jump to search
native static int GetNumLumps()
Usage
Returns the total number of lumps in the currently loaded archives. Note that indexes of lumps begin with 0, so the last index will be smaller than this value by 1.
Return values
- int — returns the total number of lumps.
Examples
This example shows how to find all lumps among the currently loaded archives and dump their names and full names to the console:
int totallumps = Wads.GetNumLumps();
int currlump = 0;
while (lumpcount < totallumps)
{
Console.Printf("Lump %d name: %s | full name: %s", currlump, Wads.GetLumpName(currlump), Wads.GetLumpFullName(currlump));
lumpcount++;
}