mirror of
https://github.com/ericasch6/scrum-poker-internal.git
synced 2026-10-16 05:48:50 +00:00
big shot
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user