refactored PlayerModel to Player

This commit is contained in:
2025-12-04 18:58:37 +05:30
parent ab9dd42689
commit 68c2e3a8d9
6 changed files with 12 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
import { motion } from "framer-motion";
import { useNakama } from "./providers/NakamaProvider";
import Player from "./Player";
import { PlayerModel } from "./interfaces/models";
import { Player } from "./interfaces/models";
import TicTacToeBoard from "./games/tictactoe/TicTacToeBoard";
import BattleShipBoard from "./games/battleship/BattleShipBoard";
@@ -13,7 +13,7 @@ export default function App() {
const [turn, setTurn] = useState<number>(0);
const [winner, setWinner] = useState<string | null>(null);
const [gameOver, setGameOver] = useState<boolean | null>(null);
const [players, setPlayers] = useState<PlayerModel[]>([]);
const [players, setPlayers] = useState<Player[]>([]);
const [metadata, setMetadata] = useState<Record<string, any>>({});
const { sendMatchData, onMatchData, matchId, session } = useNakama();