Skip to main content

Module types

Module types 

Source
Expand description

Core overworld type definitions for a JRPG engine.

These types define the foundational data structures for the overworld map system, player movement, NPCs, and map data. All types are generic over their game-specific identifiers using the MapTrait and TilesetTrait trait bounds.

Structs§

MapConnection
A single map connection (e.g., north exit leads to Route 1).
MapConnections
All connections for a map (up to one per cardinal direction).
MapData
Complete runtime data for a loaded map.
NpcDefinition
Definition of an NPC placed on the map (static data from map objects).
OverworldInput
Overworld input state for a single frame.
OverworldState
Top-level overworld state, holding the current map and player.
PlayerState
Runtime player state in the overworld.
Sign
A sign in the map that displays text when interacted with.
WarpPoint
A warp point within a map (door, staircase, etc.).

Enums§

Direction
Cardinal direction for movement and connections.
MovementState
Player movement state.
NpcMovementType
NPC movement pattern.
TransportMode
Transport mode for player movement.