Skip to content

Commit a5737f2

Browse files
committed
agora vai
1 parent 8211fda commit a5737f2

14 files changed

+18
-24
lines changed

game-prototype/astro.config.mjs

-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ export default defineConfig({
1010
plugins: [
1111
tsconfigPaths(),
1212
],
13-
build: {
14-
rollupOptions: {
15-
external: [
16-
/^types\//,
17-
]
18-
}
19-
},
2013
vite: {
2114
types: ["vite/client"]
2215
}

game-prototype/src/components/Board/Character/CharacterDice.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
} from '@components/ui/popover';
99

1010
import type { Component } from 'solid-js';
11-
import type { DiceType } from 'types/Dice';
11+
import type { DiceType } from '~types/Dice';
1212
import type { PopoverTriggerProps } from '@kobalte/core/popover';
1313

1414
type CharacterDiceProps = {

game-prototype/src/components/Board/Character/CharacterHealth.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Component } from 'solid-js';
2-
import type { Health } from 'types/Characters';
2+
import type { Health } from '~types/Characters';
33

44
type CharacterHealthProps = {
55
class?: string;

game-prototype/src/components/Board/Character/CharacterSheet.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { CharacterAction } from './CharacterAction';
55
import { cn } from '@helpers/cn';
66

77
import type { Component } from 'solid-js';
8-
import type { Character } from 'types/Characters';
8+
import type { Character } from '~types/Characters';
99

1010
type CharacterSheetProps = {
1111
character: Character;

game-prototype/src/components/Board/CharacterBoard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Component } from 'solid-js';
22
import { CharacterSheet } from '@components/Board/Character/CharacterSheet';
33
import { cn } from '@helpers/cn';
4-
import type { Character } from 'types/Characters';
4+
import type { Character } from '~types/Characters';
55

66
type CharacterBoardProps = {
77
title: string;

game-prototype/src/components/ItemSelection/CharacterSelection.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createSignal } from 'solid-js';
33
import { ItemSelection } from '@components/ItemSelection/ItemSelection';
44
import { renderCharacter } from '@components/ItemSelection/ItemSelection';
55
import { playerCharacterStore } from '@stores/CharacterStore';
6-
import type { Character } from 'types/Characters';
6+
import type { Character } from '~types/Characters';
77

88
/**
99
* Displays a character selection dialog and returns a promise that resolves with the selected character.

game-prototype/src/components/ItemSelection/ItemSelection.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createSignal, JSX } from 'solid-js';
33
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@components/ui/dialog';
44
import { CharacterSheet } from '@components/Board/Character/CharacterSheet';
55

6-
import type { Character } from 'types/Characters';
6+
import type { Character } from '~types/Characters';
77

88
export const renderCharacter = (character: Character, selectItem: () => void, isSelected: boolean) => (
99
<CharacterSheet character={character} onClick={selectItem}

game-prototype/src/game/GameContext.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { Component, createContext, useContext, ParentProps } from 'solid-js';
1+
import { createContext, useContext } from 'solid-js';
2+
import type { Component, ParentProps } from 'solid-js';
23
import { createStore } from 'solid-js/store';
34

4-
import { GamePhases } from 'types/GamePhases';
5-
import type { GamePhase } from 'types/GamePhases';
5+
import { GamePhases } from '~types/GamePhases';
6+
import type { GamePhase } from '~types/GamePhases';
67

78
export type GameManager = {
89
currentPhase: GamePhase;

game-prototype/src/game/PhaseTransitions.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { BattleSetup } from '@game/phases/BattleSetup';
66
import { BattleStart } from '@game/phases/BattleStart';
77
import { BattleEnd } from '@game/phases/BattleEnd';
88

9-
import { GamePhases } from 'types/GamePhases';
10-
import type { GamePhase } from 'types/GamePhases';
9+
import { GamePhases } from '~types/GamePhases';
10+
import type { GamePhase } from '~types/GamePhases';
1111

1212
export function setGamePhase(phase: GamePhase) {
1313
const [, setGameState] = useGameManager();

game-prototype/src/helpers/generateRandomCharacters.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { v4 as uuidv4 } from 'uuid';
22
import { getRandomElement } from '@helpers/getRandomElement';
3-
import { Roles } from 'types/Roles';
4-
import { Character } from 'types/Characters';
3+
import { Roles } from '~types/Roles';
4+
import type { Character } from '~types/Characters';
55

66
const roles = [Roles.Fighter, Roles.Mage, Roles.Rogue];
77

game-prototype/src/stores/CharacterStore.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createStore } from 'solid-js/store';
2-
import type { Character } from 'types/Characters';
2+
import type { Character } from '~types/Characters';
33

44
export type CharacterStore = {
55
characters: Character[];

game-prototype/src/stores/DialogueStore.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createStore } from 'solid-js/store';
22
import { useGameManager } from '@game/GameContext';
3-
import { GamePhase } from 'types/GamePhases';
3+
import { GamePhase } from '~types/GamePhases';
44

55
type LineType = 'info' | 'failure' | 'success';
66

game-prototype/src/types/characters.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DiceType } from './Dice';
2-
import { Role } from 'types/Roles';
2+
import { Role } from '~types/Roles';
33

44
import { CommonAction } from './actions/CommonAction';
55

game-prototype/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@styles/*": [
5353
"src/styles/*"
5454
],
55-
"types/*": [
55+
"~types/*": [
5656
"src/types/*"
5757
],
5858
"@/*": [

0 commit comments

Comments
 (0)