From f0a2d76c305af72a0f017bc012026857cc1661fd Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 2 Apr 2021 20:36:01 +0100 Subject: [PATCH] movehist: script: wip record Signed-off-by: Ian Jackson --- templates/script.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/templates/script.ts b/templates/script.ts index 34754494..b4bf0637 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -48,6 +48,7 @@ type Timestamp = number; // unix time_t, will break in 285My type Layout = 'Portrait' | 'Landscape'; type PieceMoveable = "No" | "IfWresting" | "Yes"; type CompassAngle = number; +type FaceId = number; type UoDescription = { kind: UoKind; @@ -971,8 +972,22 @@ messages.SetLinks = function links_elem.innerHTML = msg } -messages.MoveHistEnt = function -(todo: object) { +// ---------- movehist ---------- + +type MoveHistEnt = { + held: PlayerId, + posx: [MoveHistPosx, MoveHistPosx], +} +type MoveHistPosx = { + pos: Pos, + angle: CompassAngle, + facehint: FaceId | null, +} + +messages.MoveHistEnt = movehist_record; + +function movehist_record(ent: MoveHistEnt) { + } // ----- logs ----- -- 2.30.2