Expand description
Parses Little Fighter 2 (LF2) data files into an in-memory model.
Structs§
- BPoint
- Bleeding coordinates when the character has low HP.
- Bdy
- Hittable body of the object.
- CPoint
- Aligns the character that is holding and the one that is held.
- Frame
- Frame
Number - Represents the frame number.
- Frame
Number Next - Represents the next frame number to go to.
- Frames
Vec<Frame>
newtype.- Header
- Itr
- Area that hits other objects.
- OPoint
- Spawns an object during a game.
- OPoint
Facing - Number of objects to spawn, and their facing direction.
- Object
Data - Object
Data Parser - Object
Id - Object ID in
data.txt
. - Pic
- Represents the sprite number to use.
- Sprite
File - SubRule
Wrapper - WPoint
- Holds a weapon / weapon is held.
- Wait
- Represents the frame number.
- Weapon
Strength - Attack strength of a light weapon.
- Weapon
Strength Index - Represents the index in the [
WeaponStrengthList
].
Enums§
- BdyKind
- Hittable volume of an object.
- BdyKind
Parse Error - Errors when parsing a string as a
BdyKind
. - CPoint
Kind - Variants of
CPoint
. - CPoint
Kind Parse Error - Errors when parsing a string as a
CPointKind
. - Effect
- Itr
effect
variants. - Effect
Parse Error - Errors when parsing a string as a
Effect
. - Element
- Error
- ItrKind
- Interaction variants.
- ItrKind
Parse Error - Errors when parsing a string as an
ItrKind
. - OPoint
Facing Dir - Whether the same / opposite of parent, or always to the right.
- OPoint
Kind - Object spawning variants.
- OPoint
Kind Parse Error - Errors when parsing a string as an
OPointKind
. - Rule
- State
- States
- State
Parse Error - Errors when parsing a string as a
State
. - WPoint
Kind - Whether this describes holding a weapon, held as one, or dropping one.
- WPoint
Kind Parse Error - Errors when parsing a string as a
WPointKind
.
Type Aliases§
- SubRule
Fn - Function that processes a sub grammar rule.