GetLumpName
Jump to navigation
Jump to search
native static string GetLumpName(int lump)
Usage
Returns the short name of the lump at the given index.
The name returned by this function will not contain the path to the lump or its file extension. For the latter, see GetLumpFullName.
Return values
- String — the short name of the lump.
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++;
}