Class l2df.class.parser.lffs deprecated

Last updated 2021-05-28 15:24:22

Parser for LittleFighterForever syntax.

Inherited from l2df.class.parser.DatParser class.

Info:

Functions

LffsParser:parse(str[, obj]) Method for parsing lffs formatted string.
LffsParser:parseArguments(str, from, to) Method for parsing arguments from string on defined range.
LffsParser:scan(path) Method for loading markup elements' classes.
LffsParser:add(element) Method for adding new element to parser's engine.
LffsParser:dump(data) Method for dumping table to lffs format.


Functions

Methods
LffsParser:parse(str[, obj])
Method for parsing lffs formatted string. You can extend existing object by passing it as second parameter.

Parameters:

  • str string String for parsing.
  • obj table Object to extend. (optional)

Returns:

    table
LffsParser:parseArguments(str, from, to)
Method for parsing arguments from string on defined range.

Parameters:

  • str string Source string.
  • from number Start index.
  • to number End index.

Returns:

  1. table
  2. number
LffsParser:scan(path)
Method for loading markup elements' classes.

Parameters:

  • path string Path to the classes' directory.
LffsParser:add(element)
Method for adding new element to parser's engine.

Parameters:

  • element table Source element.
    • name string Name of the element. Used for its identification.

Returns:

    boolean
LffsParser:dump(data)
Method for dumping table to lffs format.

Parameters:

  • data table Table for dumping.

Returns:

    string