Commit 5a10232c authored by Chunchi Che's avatar Chunchi Che

update IDuelPlate

parent 9ca5883e
Pipeline #17768 passed with stages
in 3 minutes and 20 seconds
/*
* 决斗界面渲染需要的数据结构
*
* */
export interface Card {
code: number; // Currently only code
}
...@@ -14,10 +14,18 @@ ...@@ -14,10 +14,18 @@
* *
* */ * */
import * as duelData from "./data";
import type { RootState } from "../../store";
/* /*
* 通用的决斗界面抽象接口 * 通用的决斗界面抽象接口
* *
* */ * */
export default interface IDuelPlate { interface IDuelPlate {
// TODO // 注册手牌selector
registerHands(selector: TypeSelector<duelData.Card[]>): void;
}
export interface TypeSelector<T> {
(state: RootState): T;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment