using System.Collections.Generic; namespace Cthangover.Mods.Rpg { /// /// Autonomous movement of an event (RPG Maker's "move route" / "autonomous movement"): /// "Route": { "Steps": ["left", "left", "wait", "right", "right"], "Every": 0.8 }. /// Steps: up, down, left, right, random (a random /// direction), toward / away (relative to the player), wait, and /// face_up … face_right (turn without moving). A step into a blocked cell is /// skipped (the event turns that way). The route pauses while a dialog runs or the player /// cannot walk; positions are not saved, so an event starts from its cell on every visit. /// public class RpgMoveRoute { /// The steps, repeated from the start when is set. public List Steps { get; set; } = new(); /// Seconds between steps. public double Every { get; set; } = 1.0; /// Whether the route starts over after the last step. public bool Repeat { get; set; } = true; } }