This commit is contained in:
2026-09-01 11:59:00 +02:00
parent b2c1d67283
commit 9cf127b16d
10 changed files with 509 additions and 33 deletions
+9
View File
@@ -1,9 +1,12 @@
import type { Ref, CSSProperties } from 'vue';
export type PaperBallChargeLevel = 0 | 1 | 2 | 3;
export type PaperBallThrownPayload = {
id: string;
from_player_id: number;
target_player_id: number;
charge_level: PaperBallChargeLevel;
};
export type PaperBallFlightStyle = CSSProperties & {
@@ -19,9 +22,15 @@ export type PaperBallFlightStyle = CSSProperties & {
export type PaperBallFlight = {
id: string;
chargeLevel: PaperBallChargeLevel;
style: PaperBallFlightStyle;
};
export type PaperBallKnockback = {
x: number;
y: number;
};
export type PaperBallTossOptions = {
roomId: () => string;
currentPlayerId: () => number;
+4 -5
View File
@@ -1,5 +1,7 @@
import type { CSSProperties } from 'vue';
import type { PaperBallKnockback } from '@/types/emote';
export type PokerCard = {
key: string;
label: string;
@@ -115,6 +117,7 @@ export type RoomSeatProps = {
revealed: boolean;
presenterMode: boolean;
isPaperBallHit: boolean;
paperBallKnockback: PaperBallKnockback;
throwDisabled: boolean;
};
@@ -154,9 +157,5 @@ export type RoomStateChangedPayload = {
export type RoomRealtimeState = Pick<
PokerRoom,
| 'current_round'
| 'revealed'
| 'state_version'
| 'statistics'
| 'players'
'current_round' | 'revealed' | 'state_version' | 'statistics' | 'players'
>;