reworked event communication

This commit is contained in:
Jose Conde
2024-07-12 16:29:35 +02:00
parent d862f94f74
commit 1b058db6c0
25 changed files with 738 additions and 314 deletions

View File

@ -30,6 +30,7 @@ import tile6_6 from '@/assets/images/tiles/6-6.png'
import dot from '@/assets/images/circle.png'
import bgWood_1 from '@/assets/images/backgrounds/wood-1.jpg'
import bg_1 from '@/assets/images/backgrounds/bg-1.png'
import bg_green from '@/assets/images/backgrounds/bg-green.png'
export const assets = [
{ alias: 'tile-back', src: tileBack },
@ -63,5 +64,6 @@ export const assets = [
{ alias: 'tile-6_6', src: tile6_6 },
{ alias: 'dot', src: dot },
{ alias: 'bg-wood-1', src: bgWood_1 },
{ alias: 'bg-1', src: bg_1 }
{ alias: 'bg-1', src: bg_1 },
{ alias: 'bg-green', src: bg_green }
]

View File

@ -1,5 +1,5 @@
import { Tile } from '../Tile'
import type { GameState, Movement } from '../../common/interfaces'
import type { GameDto, Movement } from '../../common/interfaces'
import type { Game } from '../Game'
import { wait } from '../../common/helpers'
@ -46,7 +46,7 @@ export const playerState = {
]
}
export const gameState_0: GameState = {
export const gameState_0: GameDto = {
id: 'f043051e-6850-444f-857c-b889220fc187',
lastMove: {
tile: {