Files
odinsea-elixir/lib/odinsea/game/movement/chair.ex
2026-02-14 23:12:33 -07:00

30 lines
718 B
Elixir

defmodule Odinsea.Game.Movement.Chair do
@moduledoc """
Chair movement - sitting on chairs/mounts.
Ported from Java ChairMovement.java
Used for:
- Sitting on chairs (commands 9, 12)
- Mount riding (command 13 in GMS)
- Special seating
"""
@type t :: %__MODULE__{
command: integer(), # Movement command type (9, 10, 11, 12, 13)
x: integer(), # Chair X position
y: integer(), # Chair Y position
unk: integer(), # Unknown short value
stance: integer(), # New stance/move action
duration: integer() # Movement duration in ms
}
defstruct [
:command,
:x,
:y,
:unk,
:stance,
:duration
]
end