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

37 lines
930 B
Elixir

defmodule Odinsea.Game.Movement.Unknown do
@moduledoc """
Unknown movement type - placeholder for unhandled commands.
Ported from Java UnknownMovement.java
Used for:
- Command 32 (unknown structure)
- Any future/unrecognized movement types
Parses generic structure that may match unknown commands.
"""
@type t :: %__MODULE__{
command: integer(), # Movement command type (32, or unknown)
unk: integer(), # Unknown short value
x: integer(), # X position
y: integer(), # Y position
vx: integer(), # X velocity
vy: integer(), # Y velocity
foothold: integer(), # Foothold
stance: integer(), # New stance/move action
duration: integer() # Movement duration in ms
}
defstruct [
:command,
:unk,
:x,
:y,
:vx,
:vy,
:foothold,
:stance,
:duration
]
end