uqbar-project / wollok-ts-cli

Wollok Command Line Interface
GNU General Public License v3.0
9 stars 6 forks source link

El método say se visualiza muy poco tiempo #153

Open fdodino opened 3 months ago

fdodino commented 3 months ago

Tiene seteado 2 segundos wollok-ts, pero sin embargo tarda re poco tiempo.

sayPocoTiempo

PalumboN commented 3 months ago

La native settea un tiempo del mensaje

https://github.com/uqbar-project/wollok-ts/blob/22dd519edfdd5735ff5ecb27d8f23d6e6e84d9b7/src/wre/game.ts#L56-L63

Pero cli no lo lee

https://github.com/uqbar-project/wollok-ts-cli/blob/85e45ec97f8b0c227fa9bf221e3ac7c7fc34f5a3/src/commands/extrasGame.ts#L33-L40

Faltaría checkear que el messageTime sea menor al actual. Hay un ejemplo en: https://github.com/uqbar-project/wollok-game-web/blob/3fa2ab1c4608fe9c48308dd2e4885f5bb8a688a0/src/render.ts#L302

PalumboN commented 2 months ago

El rasta del pasado estaba equivocado, el messageTime se checkea acá:

https://github.com/uqbar-project/wollok-ts-cli/blob/557709b079c6219936abae2cb197d3b16844b4bc/src/commands/run.ts#L259-L265

Tal vez esté pasando algo raro con el tiempo...