kimi gone wild
This commit is contained in:
36
lib/odinsea/game/movement/unknown.ex
Normal file
36
lib/odinsea/game/movement/unknown.ex
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
Reference in New Issue
Block a user