TableDefine.ts
2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
export class GamePlayTable extends slib.config.ConfigBase {
Comment: string;
Value: number;
}
export class GameSceneObjTable extends slib.config.ConfigBase {
Name: string;
SceneId: number;
// GroupId: number;
// SlotId: number;
Star: number;
Img: string;
PosX: number;
PosY: number;
// IsGarbage: boolean;
/**是否被人物遮挡 */
IsBelowChar: boolean;
Unlock: number[];
Spine: string;
CharSpine: string;
CharSpineX: number;
CharSpineY: number;
}
export class UserSkillTable extends slib.config.ConfigBase {
Name: string;
Icon: string;
Cost: number;
BuyNum: number;
Param: number;
Desc: string;
UnlockLevel: number;
}
export class BlockColorTable extends slib.config.ConfigBase {
MaxHP: number;
Img: string;
TrangleImg: string;
}
export class WheelTable extends slib.config.ConfigBase {
Type: number;
Rate: number;
Num: number;
Icon: string;
}
export class SignTable extends slib.config.ConfigBase {
/**1 钻石
2 炸弹
3 手里剑
*/
Type: number;
Num: number;
Icon: string;
}
export class BallSkinTable extends slib.config.ConfigBase {
Name: string;
/**钻石价格,-1代表签到获得,-2代表抽奖获得 */
Price: number;
/**1:小
2:中
3:大
*/
Size: number;
Img: string;
Particle: string;
}
export class IntroTable extends slib.config.ConfigBase {
Name: string;
Level: number;
IntroImg: string;
TitleImg: string;
}
export enum TableName {
GAME_PLAY = 'GameplayTable',
GAME_SCENE_OBJ = 'GameSceneObjTable',
USER_SKILL = 'UserSkillTable',
BLOCK_COLOR = 'BlockColorTable',
WHEEL = 'WheelTable',
SIGN = 'SignTable',
BALL_SKIN = "BallSkinTable",
INTRO = 'IntroTable'
}
export const TableMap: object = {
"GameplayTable": GamePlayTable,
"GameSceneObjTable": GameSceneObjTable,
"UserSkillTable": UserSkillTable,
'BlockColorTable': BlockColorTable,
'WheelTable': WheelTable,
'SignTable': SignTable,
"BallSkinTable": BallSkinTable,
'IntroTable': IntroTable
}