Merge branch 'main' of git.legonzaur.fr:heronfief/ts-interfaces

This commit is contained in:
2024-05-26 15:49:32 +02:00
6 changed files with 9 additions and 12 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { ContainerVisibility, IContainer, IFireGemsStack, IInteractibleContainer, IMarket, IMarketStack, IPlayableContainer, IPlayerBoard, IPlayerDiscard, IPlayerHand, IPlayerStack } from "../generic/containers.js" import type { IContainer, IFireGemsStack, IInteractibleContainer, IMarket, IMarketStack, IPlayableContainer, IPlayerBoard, IPlayerDiscard, IPlayerHand, IPlayerStack } from "../generic/containers.js"
import { IGameObject, ICard, IPlayer, IGame } from "../generic/index.js" import type { ICard } from "../generic/index.js"
export interface ICContainer<T> extends IContainer<T> { export interface ICContainer<T> extends IContainer<T> {
onCardsAppend: (cards: Array<ICard>) => void onCardsAppend: (cards: Array<ICard>) => void
+2 -3
View File
@@ -1,6 +1,5 @@
import { IFireGemsStack, IMarket, IMarketStack, IPlayerBoard, IPlayerDiscard, IPlayerHand } from "../generic/containers.js" import type { ICard, IEffect, IGame, ILobby, IPlayer, ITeam, ITurn, IUser } from "../generic/index.js"
import { ICard, IEffect, IGame, IGameObject, ILobby, IPlayer, ITeam, ITurn, IUser } from "../generic/index.js" import type { ISLobby } from "../server/index.js"
import { ISLobby } from "../server/index.js"
export interface ICEffect extends IEffect { export interface ICEffect extends IEffect {
+1 -1
View File
@@ -1,4 +1,4 @@
import { ICard, IGame, IGameObject, IPlayer } from "./index.js" import type { ICard, IGame, IGameObject, IPlayer } from "./index.js"
export enum ContainerVisibility { export enum ContainerVisibility {
NONE = "none", NONE = "none",
+1 -2
View File
@@ -1,5 +1,4 @@
import { WebSocket } from "ws" import type { IFireGemsStack, IMarket, IMarketStack, IPlayerBoard, IPlayerDiscard, IPlayerHand } from "./containers.js"
import { IFireGemsStack, IMarket, IMarketStack, IPlayerBoard, IPlayerDiscard, IPlayerHand } from "./containers.js"
export const ClientQueryType = { export const ClientQueryType = {
ACTION: "action", ACTION: "action",
+2 -3
View File
@@ -1,6 +1,5 @@
import { ContainerVisibility, IContainer, IFireGemsStack, IInteractibleContainer, IMarket, IMarketStack, IPlayableContainer, IPlayerBoard, IPlayerDiscard, IPlayerHand, IPlayerStack } from "../generic/containers.js" import type { IContainer, IFireGemsStack, IInteractibleContainer, IMarket, IMarketStack, IPlayableContainer, IPlayerBoard, IPlayerDiscard, IPlayerHand, IPlayerStack } from "../generic/containers.js"
import { IGameObject, ICard, IPlayer, IGame } from "../generic/index.js" import type { ISCard } from "./index.js"
import { ISCard } from "./index.js"
export interface ISContainer<T> extends IContainer<T> { export interface ISContainer<T> extends IContainer<T> {
appendCards: (cards: Array<ISCard>) => void appendCards: (cards: Array<ISCard>) => void
+1 -1
View File
@@ -1,4 +1,4 @@
import { ICard, IEffect, IGame, ILobby, IPlayer, ITeam, ITurn, IUser, ServerMessage } from "../generic/index.js" import type { ICard, IEffect, IGame, ILobby, IPlayer, ITeam, ITurn, IUser, ServerMessage } from "../generic/index.js"
import { WebSocket } from "ws" import { WebSocket } from "ws"
export interface ISClientProvider { export interface ISClientProvider {