function SavespriteCommand(args) {
    var parsed = new statements.ArgumentStatement(args);

    if (parsed.args.length < 2) throw new SyntaxError('SAVESPRITE command requires 2 arguments');

    this.id = parsed.args[0];
    this.fileName = parsed.args[1];
}
function SavespriteCommand(args) {
    var parsed = new statements.ArgumentStatement(args);

    if (parsed.args.length < 2) throw new SyntaxError('SAVESPRITE command requires 2 arguments');

    this.id = parsed.args[0];
    this.fileName = parsed.args[1];
}
function SavespriteCommand ( args ) { var parsed = new statements . ArgumentStatement ( args ) ; if ( parsed . args . length < 2 ) throw new SyntaxError ( 'SAVESPRITE command requires 2 arguments' ) ; this . id = parsed . args [ 0 ] ; this . fileName = parsed . args [ 1 ] ; }
Saves a sprite to a file

@param {String} args The arguments to the command
@constructor
Saves a sprite to a file