From 5ff028229d90099b8e34d548a172b1aec8027287 Mon Sep 17 00:00:00 2001 From: maxime Date: Mon, 8 Jan 2024 22:45:51 +0100 Subject: [PATCH] rm unused Ball.tsx --- front/model/tactic/Ball.ts | 17 ----------------- front/model/tactic/CourtObjects.ts | 4 ++-- 2 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 front/model/tactic/Ball.ts diff --git a/front/model/tactic/Ball.ts b/front/model/tactic/Ball.ts deleted file mode 100644 index 28e4830..0000000 --- a/front/model/tactic/Ball.ts +++ /dev/null @@ -1,17 +0,0 @@ -export type CourtObject = { type: "ball" } & Ball - -export interface Ball { - /** - * The ball is a "ball" court object - */ - readonly type: "ball" - - /** - * Percentage of the player's position to the bottom (0 means top, 1 means bottom, 0.5 means middle) - */ - readonly bottomRatio: number - /** - * Percentage of the player's position to the right (0 means left, 1 means right, 0.5 means middle) - */ - readonly rightRatio: number -} diff --git a/front/model/tactic/CourtObjects.ts b/front/model/tactic/CourtObjects.ts index 28e4830..56316d2 100644 --- a/front/model/tactic/CourtObjects.ts +++ b/front/model/tactic/CourtObjects.ts @@ -1,6 +1,6 @@ -export type CourtObject = { type: "ball" } & Ball +export type CourtObject = { type: "ball" } & CourtObjects -export interface Ball { +export interface CourtObjects { /** * The ball is a "ball" court object */