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
c1c8620d
Commit
c1c8620d
authored
Jan 11, 2023
by
chechunchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add generic.ts
parent
20c8ba1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
src/reducers/duel/generic.ts
src/reducers/duel/generic.ts
+38
-0
No files found.
src/reducers/duel/generic.ts
0 → 100644
View file @
c1c8620d
import
{
CardMeta
}
from
"
../../api/cards
"
;
import
{
ygopro
}
from
"
../../api/ocgcore/idl/ocgcore
"
;
export
interface
CardState
{
occupant
?:
CardMeta
;
// 占据此位置的卡牌元信息
location
:
ygopro
.
CardLocation
;
// 位置信息
idleInteractivities
?:
Interactivity
<
number
>
[];
// IDLE状态下的互动信息
placeInteractivities
?:
Interactivity
<
{
controler
:
number
;
zone
:
ygopro
.
CardZone
;
sequence
:
number
;
}
>
;
// 选择位置状态下的互动信息
}
export
enum
InteractType
{
// 可普通召唤
SUMMON
=
1
,
// 可特殊召唤
SP_SUMMON
=
2
,
// 可改变表示形式
POS_CHANGE
=
3
,
// 可前场放置
MSET
=
4
,
// 可后场放置
SSET
=
5
,
// 可发动效果
ACTIVATE
=
6
,
// 可作为位置选择
PLACE_SELECTABLE
=
7
,
}
export
interface
Interactivity
<
T
>
{
interactType
:
InteractType
;
// 如果`interactType`是`ACTIVATE`,这个字段是对应的效果编号
activateIndex
?:
number
;
// 用户点击后,需要回传给服务端的`response`
response
:
T
;
}
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