From: Ian Jackson Date: Fri, 2 Apr 2021 19:36:01 +0000 (+0100) Subject: movehist: script: wip record X-Git-Tag: otter-0.5.0~303 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f0a2d76c305af72a0f017bc012026857cc1661fd;p=otter.git movehist: script: wip record Signed-off-by: Ian Jackson --- 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 -----