Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
9dc08cb0
Commit
9dc08cb0
authored
Jul 30, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fmt
parent
79f8700c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
src/service/duel/chaining.ts
src/service/duel/chaining.ts
+2
-2
src/service/duel/confirmCards.ts
src/service/duel/confirmCards.ts
+2
-2
src/ui/Duel/PlayMat/Card/index.tsx
src/ui/Duel/PlayMat/Card/index.tsx
+4
-8
src/ui/Shared/index.ts
src/ui/Shared/index.ts
+1
-1
No files found.
src/service/duel/chaining.ts
View file @
9dc08cb0
import
{
fetchCard
,
ygopro
}
from
"
@/api
"
;
import
{
fetchCard
,
ygopro
}
from
"
@/api
"
;
import
{
eventbus
,
Task
}
from
"
@/infra
"
;
import
{
cardStore
,
fetchEsHintMeta
,
matStore
}
from
"
@/stores
"
;
import
{
cardStore
,
fetchEsHintMeta
,
matStore
}
from
"
@/stores
"
;
import
{
callCardFocus
}
from
"
@/ui/Duel/PlayMat/Card
"
;
export
default
async
(
chaining
:
ygopro
.
StocGameMessage
.
MsgChaining
)
=>
{
export
default
async
(
chaining
:
ygopro
.
StocGameMessage
.
MsgChaining
)
=>
{
fetchEsHintMeta
({
fetchEsHintMeta
({
...
@@ -27,7 +27,7 @@ export default async (chaining: ygopro.StocGameMessage.MsgChaining) => {
...
@@ -27,7 +27,7 @@ export default async (chaining: ygopro.StocGameMessage.MsgChaining) => {
target
.
meta
=
meta
;
target
.
meta
=
meta
;
// 发动效果动画
// 发动效果动画
await
eventbus
.
call
(
Task
.
Focus
,
target
.
uuid
);
await
callCardFocus
(
target
.
uuid
);
console
.
color
(
"
blue
"
)(
`
${
target
.
meta
.
text
.
name
}
chaining`
);
console
.
color
(
"
blue
"
)(
`
${
target
.
meta
.
text
.
name
}
chaining`
);
}
else
{
}
else
{
console
.
warn
(
`<Chaining>target from
${
location
}
is null`
);
console
.
warn
(
`<Chaining>target from
${
location
}
is null`
);
...
...
src/service/duel/confirmCards.ts
View file @
9dc08cb0
import
{
fetchCard
,
ygopro
}
from
"
@/api
"
;
import
{
fetchCard
,
ygopro
}
from
"
@/api
"
;
import
{
eventbus
,
Task
}
from
"
@/infra
"
;
import
{
cardStore
}
from
"
@/stores
"
;
import
{
cardStore
}
from
"
@/stores
"
;
import
{
callCardFocus
}
from
"
@/ui/Duel/PlayMat/Card
"
;
export
default
async
(
confirmCards
:
ygopro
.
StocGameMessage
.
MsgConfirmCards
)
=>
{
export
default
async
(
confirmCards
:
ygopro
.
StocGameMessage
.
MsgConfirmCards
)
=>
{
const
cards
=
confirmCards
.
cards
;
const
cards
=
confirmCards
.
cards
;
...
@@ -14,7 +14,7 @@ export default async (confirmCards: ygopro.StocGameMessage.MsgConfirmCards) => {
...
@@ -14,7 +14,7 @@ export default async (confirmCards: ygopro.StocGameMessage.MsgConfirmCards) => {
const
meta
=
await
fetchCard
(
card
.
code
);
const
meta
=
await
fetchCard
(
card
.
code
);
target
.
meta
=
meta
;
target
.
meta
=
meta
;
// 动画
// 动画
await
eventbus
.
call
(
Task
.
Focus
,
target
.
uuid
);
await
callCardFocus
(
target
.
uuid
);
}
else
{
}
else
{
console
.
warn
(
`card of
${
card
}
is null`
);
console
.
warn
(
`card of
${
card
}
is null`
);
}
}
...
...
src/ui/Duel/PlayMat/Card/index.tsx
View file @
9dc08cb0
...
@@ -31,7 +31,6 @@ import {
...
@@ -31,7 +31,6 @@ import {
type
MoveOptions
,
type
MoveOptions
,
}
from
"
./springs
"
;
}
from
"
./springs
"
;
import
type
{
SpringApiProps
}
from
"
./springs/types
"
;
import
type
{
SpringApiProps
}
from
"
./springs/types
"
;
import
{
IconFont
}
from
"
@/ui/Shared
"
;
const
{
HAND
,
GRAVE
,
REMOVED
,
EXTRA
,
MZONE
,
SZONE
,
TZONE
}
=
ygopro
.
CardZone
;
const
{
HAND
,
GRAVE
,
REMOVED
,
EXTRA
,
MZONE
,
SZONE
,
TZONE
}
=
ygopro
.
CardZone
;
...
@@ -361,13 +360,10 @@ const handleEffectActivation = (
...
@@ -361,13 +360,10 @@ const handleEffectActivation = (
//
<
<<
下拉菜单
<<<
//
<
<<
下拉菜单
<<<
type
CallReturn
<
Options
>
= Options extends
{}
const
call
=
? (uuid: string, options?: Options) =
>
Promise
<
void
>
<
Options
,
>
(task: Task) =
>
: (uuid: string) =
>
Promise
<
void
>
;
(uuid: string, options?: Options extends undefined ? never : Options) =
>
eventbus.call(task, uuid, options);
const call =
<
Options
,
>
(task: Task): CallReturn
<
Options
>
=
>
((uuid: string, options?: Options) =
>
eventbus.call(task, uuid, options)) as any;
export const callCardMove = call
<
MoveOptions
>
(Task.Move);
export const callCardMove = call
<
MoveOptions
>
(Task.Move);
export const callCardFocus = call(Task.Focus);
export const callCardFocus = call(Task.Focus);
...
...
src/ui/Shared/index.ts
View file @
9dc08cb0
export
*
from
"
./css
"
;
export
*
from
"
./css
"
;
export
*
from
"
./YgoCard
"
;
export
*
from
"
./IconFont
"
;
export
*
from
"
./IconFont
"
;
export
*
from
"
./YgoCard
"
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment