Crate lf2_parse

Source
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
FrameNumber
Represents the frame number.
FrameNumberNext
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.
OPointFacing
Number of objects to spawn, and their facing direction.
ObjectData
ObjectDataParser
ObjectId
Object ID in data.txt.
Pic
Represents the sprite number to use.
SpriteFile
SubRuleWrapper
WPoint
Holds a weapon / weapon is held.
Wait
Represents the frame number.
WeaponStrength
Attack strength of a light weapon.
WeaponStrengthIndex
Represents the index in the [WeaponStrengthList].

Enums§

BdyKind
Hittable volume of an object.
BdyKindParseError
Errors when parsing a string as a BdyKind.
CPointKind
Variants of CPoint.
CPointKindParseError
Errors when parsing a string as a CPointKind.
Effect
Itr effect variants.
EffectParseError
Errors when parsing a string as a Effect.
Element
Error
ItrKind
Interaction variants.
ItrKindParseError
Errors when parsing a string as an ItrKind.
OPointFacingDir
Whether the same / opposite of parent, or always to the right.
OPointKind
Object spawning variants.
OPointKindParseError
Errors when parsing a string as an OPointKind.
Rule
State
States
StateParseError
Errors when parsing a string as a State.
WPointKind
Whether this describes holding a weapon, held as one, or dropping one.
WPointKindParseError
Errors when parsing a string as a WPointKind.

Type Aliases§

SubRuleFn
Function that processes a sub grammar rule.