New AUTHINFO commands: "AddSprites" and "RemoveSprites"
Some mods may want to authenticate entire sets of sprites, but it's cumbersome to manually type AddLump
(or RemoveLump
) commands for each sprite frame and rotation. Not to mention, there's no automatic way of scanning for every possible sprite that could be loaded if it's done manually. Therefore, I added AddSprites
(and RemoveSprites
) so that this can be accomplished in a single command.
The syntax is as follows:
AddSprites <name> <frames> <last | all>
RemoveSprites <name> <frames>
The desired frames should be listed in a string (e.g. "ABC" scans the A, B, and C frames of a given sprite). If all frames should be scanned, then "all" can be used.
I split the refactoring changes into its own commit to make reviewing this easier.