volleyballsimtypes 0.0.168 → 0.0.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/data/common/index.d.ts +0 -1
- package/dist/cjs/src/data/common/index.js +0 -1
- package/dist/cjs/src/data/models/performance-stats.d.ts +2 -2
- package/dist/cjs/src/data/models/performance-stats.js +1 -1
- package/dist/cjs/src/data/transformers/performance-stats.js +2 -2
- package/dist/cjs/src/service/event/events.d.ts +93 -0
- package/dist/cjs/src/{data/common → service/event}/events.js +4 -5
- package/dist/cjs/src/service/event/index.d.ts +1 -0
- package/dist/cjs/src/service/event/index.js +1 -0
- package/dist/cjs/src/service/event/rally-event.d.ts +3 -3
- package/dist/cjs/src/service/player/performance-stats.d.ts +1 -1
- package/dist/cjs/src/service/player/performance-stats.js +1 -1
- package/dist/cjs/src/stat-config/roles.json +5 -5
- package/dist/cjs/src/stat-config/traits.json +2 -2
- package/dist/esm/src/data/common/index.d.ts +0 -1
- package/dist/esm/src/data/common/index.js +0 -1
- package/dist/esm/src/data/models/performance-stats.d.ts +2 -2
- package/dist/esm/src/data/models/performance-stats.js +1 -1
- package/dist/esm/src/data/transformers/performance-stats.js +2 -2
- package/dist/esm/src/service/event/events.d.ts +93 -0
- package/dist/esm/src/{data/common → service/event}/events.js +4 -5
- package/dist/esm/src/service/event/index.d.ts +1 -0
- package/dist/esm/src/service/event/index.js +1 -0
- package/dist/esm/src/service/event/rally-event.d.ts +3 -3
- package/dist/esm/src/service/player/performance-stats.d.ts +1 -1
- package/dist/esm/src/service/player/performance-stats.js +1 -1
- package/dist/esm/src/stat-config/roles.json +5 -5
- package/dist/esm/src/stat-config/traits.json +2 -2
- package/package.json +1 -1
- package/dist/cjs/src/data/common/events.d.ts +0 -82
- package/dist/esm/src/data/common/events.d.ts +0 -82
|
@@ -20,7 +20,7 @@ export interface PerformanceStatsAttributes {
|
|
|
20
20
|
focus: number;
|
|
21
21
|
defense: number;
|
|
22
22
|
stamina: number;
|
|
23
|
-
|
|
23
|
+
reflex: number;
|
|
24
24
|
}
|
|
25
25
|
export type PerformanceStatsPk = 'player_id';
|
|
26
26
|
export type PerformanceStatsId = PerformanceStatsModel[PerformanceStatsPk];
|
|
@@ -44,7 +44,7 @@ export declare class PerformanceStatsModel extends Model<PerformanceStatsAttribu
|
|
|
44
44
|
focus: number;
|
|
45
45
|
defense: number;
|
|
46
46
|
stamina: number;
|
|
47
|
-
|
|
47
|
+
reflex: number;
|
|
48
48
|
player: PlayerModel;
|
|
49
49
|
getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
|
|
50
50
|
setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
|
|
@@ -22,7 +22,7 @@ function transformToAttributes(player) {
|
|
|
22
22
|
setting: player.stats.setting,
|
|
23
23
|
spike: player.stats.spike,
|
|
24
24
|
stamina: player.stats.stamina,
|
|
25
|
-
|
|
25
|
+
reflex: player.stats.reflex
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
exports.transformFromPerformanceStats = transformToAttributes;
|
|
@@ -45,7 +45,7 @@ function transformToObject(model) {
|
|
|
45
45
|
focus: model.focus,
|
|
46
46
|
defense: model.defense,
|
|
47
47
|
stamina: model.stamina,
|
|
48
|
-
|
|
48
|
+
reflex: model.reflex
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
exports.transformToPerformanceStats = transformToObject;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export declare enum EventTypeEnum {
|
|
2
|
+
LIBERO_REPLACEMENT = 0,
|
|
3
|
+
SUBSTITUTION = 1,
|
|
4
|
+
SERVE = 2,
|
|
5
|
+
RECEPTION = 3,
|
|
6
|
+
SET = 4,
|
|
7
|
+
SPIKE = 5,
|
|
8
|
+
BLOCK = 6
|
|
9
|
+
}
|
|
10
|
+
export type EventType = EventTypeEnum.LIBERO_REPLACEMENT | EventTypeEnum.SUBSTITUTION | EventTypeEnum.SERVE | EventTypeEnum.RECEPTION | EventTypeEnum.SET | EventTypeEnum.SPIKE | EventTypeEnum.BLOCK;
|
|
11
|
+
export declare enum BlockFailureEnum {
|
|
12
|
+
NO_FAILURE = 0,
|
|
13
|
+
MISS = 1,
|
|
14
|
+
FAULT = 2,
|
|
15
|
+
OUT_OF_BOUNDS = 3,
|
|
16
|
+
WIPE = 4,
|
|
17
|
+
TOOL = 5
|
|
18
|
+
}
|
|
19
|
+
export type BlockFailure = BlockFailureEnum.NO_FAILURE | BlockFailureEnum.MISS | BlockFailureEnum.FAULT | BlockFailureEnum.OUT_OF_BOUNDS | BlockFailureEnum.WIPE | BlockFailureEnum.TOOL;
|
|
20
|
+
export declare enum BlockTypeEnum {
|
|
21
|
+
NO_BLOCKER = 0,
|
|
22
|
+
SINGLE = 1,
|
|
23
|
+
DOUBLE = 2,
|
|
24
|
+
TRIPLE = 3
|
|
25
|
+
}
|
|
26
|
+
export type BlockType = BlockTypeEnum.NO_BLOCKER | BlockTypeEnum.SINGLE | BlockTypeEnum.DOUBLE | BlockTypeEnum.TRIPLE;
|
|
27
|
+
export declare enum LiberoReplacementTypeEnum {
|
|
28
|
+
LIBERO_IN = 0,
|
|
29
|
+
LIBERO_OUT = 1
|
|
30
|
+
}
|
|
31
|
+
export type LiberoReplacementType = LiberoReplacementTypeEnum.LIBERO_IN | LiberoReplacementTypeEnum.LIBERO_OUT;
|
|
32
|
+
export declare enum ReceptionTypeEnum {
|
|
33
|
+
DIG = 0,
|
|
34
|
+
OVERHAND = 1,
|
|
35
|
+
ONE_HAND = 2,
|
|
36
|
+
OTHER_BODY_PART = 3
|
|
37
|
+
}
|
|
38
|
+
export type ReceptionType = ReceptionTypeEnum.DIG | ReceptionTypeEnum.OVERHAND | ReceptionTypeEnum.ONE_HAND | ReceptionTypeEnum.OTHER_BODY_PART;
|
|
39
|
+
export declare enum ReceptionFailureEnum {
|
|
40
|
+
NO_FAILURE = 0,
|
|
41
|
+
FAULT = 1,
|
|
42
|
+
MISS = 2,
|
|
43
|
+
OUT_OF_BOUNDS = 3,
|
|
44
|
+
BAD_PASS = 4
|
|
45
|
+
}
|
|
46
|
+
export type ReceptionFailure = ReceptionFailureEnum.NO_FAILURE | ReceptionFailureEnum.FAULT | ReceptionFailureEnum.MISS | ReceptionFailureEnum.OUT_OF_BOUNDS | ReceptionFailureEnum.BAD_PASS;
|
|
47
|
+
export declare enum ServeTypeEnum {
|
|
48
|
+
OVERHAND_TOPSPIN = 0,
|
|
49
|
+
OVERHAND_FLOAT = 1,
|
|
50
|
+
JUMP_TOPSPIN = 2,
|
|
51
|
+
JUMP_FLOAT = 3
|
|
52
|
+
}
|
|
53
|
+
export type ServeType = ServeTypeEnum.OVERHAND_TOPSPIN | ServeTypeEnum.OVERHAND_FLOAT | ServeTypeEnum.JUMP_TOPSPIN | ServeTypeEnum.JUMP_FLOAT;
|
|
54
|
+
export declare enum ServeFailureEnum {
|
|
55
|
+
NO_FAILURE = 0,
|
|
56
|
+
FAULT = 1,
|
|
57
|
+
MISS = 2,
|
|
58
|
+
NET = 3,
|
|
59
|
+
OUT_OF_BOUNDS = 4
|
|
60
|
+
}
|
|
61
|
+
export type ServeFailure = ServeFailureEnum.NO_FAILURE | ServeFailureEnum.FAULT | ServeFailureEnum.MISS | ServeFailureEnum.NET | ServeFailureEnum.OUT_OF_BOUNDS;
|
|
62
|
+
export declare enum SetTypeEnum {
|
|
63
|
+
OVERHAND = 0,
|
|
64
|
+
UNDERHAND = 1,
|
|
65
|
+
SPIKE = 2,
|
|
66
|
+
DUMP = 3
|
|
67
|
+
}
|
|
68
|
+
export type SetType = SetTypeEnum.OVERHAND | SetTypeEnum.UNDERHAND | SetTypeEnum.SPIKE | SetTypeEnum.DUMP;
|
|
69
|
+
export declare enum SetFailureEnum {
|
|
70
|
+
NO_FAILURE = 0,
|
|
71
|
+
FAULT = 1,
|
|
72
|
+
MISS = 2,
|
|
73
|
+
BAD_PASS = 3,
|
|
74
|
+
OUT_OF_BOUNDS = 4
|
|
75
|
+
}
|
|
76
|
+
export type SetFailure = SetFailureEnum.NO_FAILURE | SetFailureEnum.FAULT | SetFailureEnum.MISS | SetFailureEnum.BAD_PASS | SetFailureEnum.OUT_OF_BOUNDS;
|
|
77
|
+
export declare enum SpikeTypeEnum {
|
|
78
|
+
CROSS_SHOT = 0,
|
|
79
|
+
LINE_SHOT = 1,
|
|
80
|
+
TOOL_SHOT = 2,
|
|
81
|
+
TIP = 3,
|
|
82
|
+
DOWN_BALL = 4,
|
|
83
|
+
OVERHAND = 5
|
|
84
|
+
}
|
|
85
|
+
export type SpikeType = SpikeTypeEnum.CROSS_SHOT | SpikeTypeEnum.LINE_SHOT | SpikeTypeEnum.TOOL_SHOT | SpikeTypeEnum.TIP | SpikeTypeEnum.DOWN_BALL | SpikeTypeEnum.OVERHAND;
|
|
86
|
+
export declare enum SpikeFailureEnum {
|
|
87
|
+
NO_FAILURE = 0,
|
|
88
|
+
FAULT = 1,
|
|
89
|
+
MISS = 2,
|
|
90
|
+
OUT_OF_BOUNDS = 3,
|
|
91
|
+
NET = 4
|
|
92
|
+
}
|
|
93
|
+
export type SpikeFailure = SpikeFailureEnum.NO_FAILURE | SpikeFailureEnum.FAULT | SpikeFailureEnum.MISS | SpikeFailureEnum.OUT_OF_BOUNDS | SpikeFailureEnum.NET;
|
|
@@ -49,11 +49,10 @@ var ReceptionFailureEnum;
|
|
|
49
49
|
})(ReceptionFailureEnum = exports.ReceptionFailureEnum || (exports.ReceptionFailureEnum = {}));
|
|
50
50
|
var ServeTypeEnum;
|
|
51
51
|
(function (ServeTypeEnum) {
|
|
52
|
-
ServeTypeEnum[ServeTypeEnum["
|
|
53
|
-
ServeTypeEnum[ServeTypeEnum["
|
|
54
|
-
ServeTypeEnum[ServeTypeEnum["
|
|
55
|
-
ServeTypeEnum[ServeTypeEnum["
|
|
56
|
-
ServeTypeEnum[ServeTypeEnum["JUMP_FLOAT"] = 4] = "JUMP_FLOAT";
|
|
52
|
+
ServeTypeEnum[ServeTypeEnum["OVERHAND_TOPSPIN"] = 0] = "OVERHAND_TOPSPIN";
|
|
53
|
+
ServeTypeEnum[ServeTypeEnum["OVERHAND_FLOAT"] = 1] = "OVERHAND_FLOAT";
|
|
54
|
+
ServeTypeEnum[ServeTypeEnum["JUMP_TOPSPIN"] = 2] = "JUMP_TOPSPIN";
|
|
55
|
+
ServeTypeEnum[ServeTypeEnum["JUMP_FLOAT"] = 3] = "JUMP_FLOAT";
|
|
57
56
|
})(ServeTypeEnum = exports.ServeTypeEnum || (exports.ServeTypeEnum = {}));
|
|
58
57
|
var ServeFailureEnum;
|
|
59
58
|
(function (ServeFailureEnum) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventType } from './events';
|
|
2
2
|
export interface RallyEventOpts {
|
|
3
3
|
readonly player: string;
|
|
4
|
-
readonly eventType:
|
|
4
|
+
readonly eventType: EventType;
|
|
5
5
|
}
|
|
6
6
|
export declare abstract class RallyEvent {
|
|
7
7
|
readonly player: string;
|
|
8
|
-
readonly eventType:
|
|
8
|
+
readonly eventType: EventType;
|
|
9
9
|
protected constructor({ eventType, player }: RallyEventOpts);
|
|
10
10
|
abstract toString(): string;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const performanceStatKeys: readonly ["setting", "serve", "spike", "quick", "power", "awareness", "attack", "backAttack", "reception", "overhand", "bump", "block", "read", "commit", "focus", "defense", "stamina", "
|
|
1
|
+
export declare const performanceStatKeys: readonly ["setting", "serve", "spike", "quick", "power", "awareness", "attack", "backAttack", "reception", "overhand", "bump", "block", "read", "commit", "focus", "defense", "stamina", "reflex"];
|
|
2
2
|
export type PerformanceStatsKey = typeof performanceStatKeys[number];
|
|
3
3
|
export type PerformanceStatsParams = Record<PerformanceStatsKey, number>;
|
|
4
4
|
export interface PerformanceStats extends PerformanceStatsParams {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PerformanceStats = exports.performanceStatKeys = void 0;
|
|
4
4
|
exports.performanceStatKeys = ['setting', 'serve', 'spike', 'quick', 'power', 'awareness', 'attack', 'backAttack',
|
|
5
|
-
'reception', 'overhand', 'bump', 'block', 'read', 'commit', 'focus', 'defense', 'stamina', '
|
|
5
|
+
'reception', 'overhand', 'bump', 'block', 'read', 'commit', 'focus', 'defense', 'stamina', 'reflex'];
|
|
6
6
|
class PerformanceStats {
|
|
7
7
|
constructor(opts) {
|
|
8
8
|
Object.assign(this, opts);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"commit": 0,
|
|
20
20
|
"focus": 0,
|
|
21
21
|
"defense": 0,
|
|
22
|
-
"
|
|
22
|
+
"reflex": 0
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
{
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"commit": 0,
|
|
43
43
|
"focus": 0,
|
|
44
44
|
"defense": 0,
|
|
45
|
-
"
|
|
45
|
+
"reflex": 0
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"commit": 0,
|
|
66
66
|
"focus": 0,
|
|
67
67
|
"defense": 0,
|
|
68
|
-
"
|
|
68
|
+
"reflex": 0
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"commit": 0,
|
|
89
89
|
"focus": 0,
|
|
90
90
|
"defense": 0,
|
|
91
|
-
"
|
|
91
|
+
"reflex": 0
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
{
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"commit": 0,
|
|
112
112
|
"focus": 0,
|
|
113
113
|
"defense": 0,
|
|
114
|
-
"
|
|
114
|
+
"reflex": 0
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
]
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
{
|
|
19
19
|
"name": "MARKSMAN",
|
|
20
20
|
"modifier": 1.05,
|
|
21
|
-
"chance": 0.
|
|
21
|
+
"chance": 0.5,
|
|
22
22
|
"statThreshold": 75,
|
|
23
23
|
"stat": "ATTACK",
|
|
24
24
|
"weight": 5
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{
|
|
27
27
|
"name": "METEOR_SERVE",
|
|
28
28
|
"modifier": 1.1,
|
|
29
|
-
"chance": 0.
|
|
29
|
+
"chance": 0.5,
|
|
30
30
|
"statThreshold": 75,
|
|
31
31
|
"stat": "SERVE",
|
|
32
32
|
"weight": 10
|
|
@@ -20,7 +20,7 @@ export interface PerformanceStatsAttributes {
|
|
|
20
20
|
focus: number;
|
|
21
21
|
defense: number;
|
|
22
22
|
stamina: number;
|
|
23
|
-
|
|
23
|
+
reflex: number;
|
|
24
24
|
}
|
|
25
25
|
export type PerformanceStatsPk = 'player_id';
|
|
26
26
|
export type PerformanceStatsId = PerformanceStatsModel[PerformanceStatsPk];
|
|
@@ -44,7 +44,7 @@ export declare class PerformanceStatsModel extends Model<PerformanceStatsAttribu
|
|
|
44
44
|
focus: number;
|
|
45
45
|
defense: number;
|
|
46
46
|
stamina: number;
|
|
47
|
-
|
|
47
|
+
reflex: number;
|
|
48
48
|
player: PlayerModel;
|
|
49
49
|
getPlayer: Sequelize.BelongsToGetAssociationMixin<PlayerModel>;
|
|
50
50
|
setPlayer: Sequelize.BelongsToSetAssociationMixin<PlayerModel, PlayerId>;
|
|
@@ -19,7 +19,7 @@ function transformToAttributes(player) {
|
|
|
19
19
|
setting: player.stats.setting,
|
|
20
20
|
spike: player.stats.spike,
|
|
21
21
|
stamina: player.stats.stamina,
|
|
22
|
-
|
|
22
|
+
reflex: player.stats.reflex
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
function transformToObject(model) {
|
|
@@ -41,7 +41,7 @@ function transformToObject(model) {
|
|
|
41
41
|
focus: model.focus,
|
|
42
42
|
defense: model.defense,
|
|
43
43
|
stamina: model.stamina,
|
|
44
|
-
|
|
44
|
+
reflex: model.reflex
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
export { transformToObject as transformToPerformanceStats, transformToAttributes as transformFromPerformanceStats };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export declare enum EventTypeEnum {
|
|
2
|
+
LIBERO_REPLACEMENT = 0,
|
|
3
|
+
SUBSTITUTION = 1,
|
|
4
|
+
SERVE = 2,
|
|
5
|
+
RECEPTION = 3,
|
|
6
|
+
SET = 4,
|
|
7
|
+
SPIKE = 5,
|
|
8
|
+
BLOCK = 6
|
|
9
|
+
}
|
|
10
|
+
export type EventType = EventTypeEnum.LIBERO_REPLACEMENT | EventTypeEnum.SUBSTITUTION | EventTypeEnum.SERVE | EventTypeEnum.RECEPTION | EventTypeEnum.SET | EventTypeEnum.SPIKE | EventTypeEnum.BLOCK;
|
|
11
|
+
export declare enum BlockFailureEnum {
|
|
12
|
+
NO_FAILURE = 0,
|
|
13
|
+
MISS = 1,
|
|
14
|
+
FAULT = 2,
|
|
15
|
+
OUT_OF_BOUNDS = 3,
|
|
16
|
+
WIPE = 4,
|
|
17
|
+
TOOL = 5
|
|
18
|
+
}
|
|
19
|
+
export type BlockFailure = BlockFailureEnum.NO_FAILURE | BlockFailureEnum.MISS | BlockFailureEnum.FAULT | BlockFailureEnum.OUT_OF_BOUNDS | BlockFailureEnum.WIPE | BlockFailureEnum.TOOL;
|
|
20
|
+
export declare enum BlockTypeEnum {
|
|
21
|
+
NO_BLOCKER = 0,
|
|
22
|
+
SINGLE = 1,
|
|
23
|
+
DOUBLE = 2,
|
|
24
|
+
TRIPLE = 3
|
|
25
|
+
}
|
|
26
|
+
export type BlockType = BlockTypeEnum.NO_BLOCKER | BlockTypeEnum.SINGLE | BlockTypeEnum.DOUBLE | BlockTypeEnum.TRIPLE;
|
|
27
|
+
export declare enum LiberoReplacementTypeEnum {
|
|
28
|
+
LIBERO_IN = 0,
|
|
29
|
+
LIBERO_OUT = 1
|
|
30
|
+
}
|
|
31
|
+
export type LiberoReplacementType = LiberoReplacementTypeEnum.LIBERO_IN | LiberoReplacementTypeEnum.LIBERO_OUT;
|
|
32
|
+
export declare enum ReceptionTypeEnum {
|
|
33
|
+
DIG = 0,
|
|
34
|
+
OVERHAND = 1,
|
|
35
|
+
ONE_HAND = 2,
|
|
36
|
+
OTHER_BODY_PART = 3
|
|
37
|
+
}
|
|
38
|
+
export type ReceptionType = ReceptionTypeEnum.DIG | ReceptionTypeEnum.OVERHAND | ReceptionTypeEnum.ONE_HAND | ReceptionTypeEnum.OTHER_BODY_PART;
|
|
39
|
+
export declare enum ReceptionFailureEnum {
|
|
40
|
+
NO_FAILURE = 0,
|
|
41
|
+
FAULT = 1,
|
|
42
|
+
MISS = 2,
|
|
43
|
+
OUT_OF_BOUNDS = 3,
|
|
44
|
+
BAD_PASS = 4
|
|
45
|
+
}
|
|
46
|
+
export type ReceptionFailure = ReceptionFailureEnum.NO_FAILURE | ReceptionFailureEnum.FAULT | ReceptionFailureEnum.MISS | ReceptionFailureEnum.OUT_OF_BOUNDS | ReceptionFailureEnum.BAD_PASS;
|
|
47
|
+
export declare enum ServeTypeEnum {
|
|
48
|
+
OVERHAND_TOPSPIN = 0,
|
|
49
|
+
OVERHAND_FLOAT = 1,
|
|
50
|
+
JUMP_TOPSPIN = 2,
|
|
51
|
+
JUMP_FLOAT = 3
|
|
52
|
+
}
|
|
53
|
+
export type ServeType = ServeTypeEnum.OVERHAND_TOPSPIN | ServeTypeEnum.OVERHAND_FLOAT | ServeTypeEnum.JUMP_TOPSPIN | ServeTypeEnum.JUMP_FLOAT;
|
|
54
|
+
export declare enum ServeFailureEnum {
|
|
55
|
+
NO_FAILURE = 0,
|
|
56
|
+
FAULT = 1,
|
|
57
|
+
MISS = 2,
|
|
58
|
+
NET = 3,
|
|
59
|
+
OUT_OF_BOUNDS = 4
|
|
60
|
+
}
|
|
61
|
+
export type ServeFailure = ServeFailureEnum.NO_FAILURE | ServeFailureEnum.FAULT | ServeFailureEnum.MISS | ServeFailureEnum.NET | ServeFailureEnum.OUT_OF_BOUNDS;
|
|
62
|
+
export declare enum SetTypeEnum {
|
|
63
|
+
OVERHAND = 0,
|
|
64
|
+
UNDERHAND = 1,
|
|
65
|
+
SPIKE = 2,
|
|
66
|
+
DUMP = 3
|
|
67
|
+
}
|
|
68
|
+
export type SetType = SetTypeEnum.OVERHAND | SetTypeEnum.UNDERHAND | SetTypeEnum.SPIKE | SetTypeEnum.DUMP;
|
|
69
|
+
export declare enum SetFailureEnum {
|
|
70
|
+
NO_FAILURE = 0,
|
|
71
|
+
FAULT = 1,
|
|
72
|
+
MISS = 2,
|
|
73
|
+
BAD_PASS = 3,
|
|
74
|
+
OUT_OF_BOUNDS = 4
|
|
75
|
+
}
|
|
76
|
+
export type SetFailure = SetFailureEnum.NO_FAILURE | SetFailureEnum.FAULT | SetFailureEnum.MISS | SetFailureEnum.BAD_PASS | SetFailureEnum.OUT_OF_BOUNDS;
|
|
77
|
+
export declare enum SpikeTypeEnum {
|
|
78
|
+
CROSS_SHOT = 0,
|
|
79
|
+
LINE_SHOT = 1,
|
|
80
|
+
TOOL_SHOT = 2,
|
|
81
|
+
TIP = 3,
|
|
82
|
+
DOWN_BALL = 4,
|
|
83
|
+
OVERHAND = 5
|
|
84
|
+
}
|
|
85
|
+
export type SpikeType = SpikeTypeEnum.CROSS_SHOT | SpikeTypeEnum.LINE_SHOT | SpikeTypeEnum.TOOL_SHOT | SpikeTypeEnum.TIP | SpikeTypeEnum.DOWN_BALL | SpikeTypeEnum.OVERHAND;
|
|
86
|
+
export declare enum SpikeFailureEnum {
|
|
87
|
+
NO_FAILURE = 0,
|
|
88
|
+
FAULT = 1,
|
|
89
|
+
MISS = 2,
|
|
90
|
+
OUT_OF_BOUNDS = 3,
|
|
91
|
+
NET = 4
|
|
92
|
+
}
|
|
93
|
+
export type SpikeFailure = SpikeFailureEnum.NO_FAILURE | SpikeFailureEnum.FAULT | SpikeFailureEnum.MISS | SpikeFailureEnum.OUT_OF_BOUNDS | SpikeFailureEnum.NET;
|
|
@@ -46,11 +46,10 @@ export var ReceptionFailureEnum;
|
|
|
46
46
|
})(ReceptionFailureEnum || (ReceptionFailureEnum = {}));
|
|
47
47
|
export var ServeTypeEnum;
|
|
48
48
|
(function (ServeTypeEnum) {
|
|
49
|
-
ServeTypeEnum[ServeTypeEnum["
|
|
50
|
-
ServeTypeEnum[ServeTypeEnum["
|
|
51
|
-
ServeTypeEnum[ServeTypeEnum["
|
|
52
|
-
ServeTypeEnum[ServeTypeEnum["
|
|
53
|
-
ServeTypeEnum[ServeTypeEnum["JUMP_FLOAT"] = 4] = "JUMP_FLOAT";
|
|
49
|
+
ServeTypeEnum[ServeTypeEnum["OVERHAND_TOPSPIN"] = 0] = "OVERHAND_TOPSPIN";
|
|
50
|
+
ServeTypeEnum[ServeTypeEnum["OVERHAND_FLOAT"] = 1] = "OVERHAND_FLOAT";
|
|
51
|
+
ServeTypeEnum[ServeTypeEnum["JUMP_TOPSPIN"] = 2] = "JUMP_TOPSPIN";
|
|
52
|
+
ServeTypeEnum[ServeTypeEnum["JUMP_FLOAT"] = 3] = "JUMP_FLOAT";
|
|
54
53
|
})(ServeTypeEnum || (ServeTypeEnum = {}));
|
|
55
54
|
export var ServeFailureEnum;
|
|
56
55
|
(function (ServeFailureEnum) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventType } from './events';
|
|
2
2
|
export interface RallyEventOpts {
|
|
3
3
|
readonly player: string;
|
|
4
|
-
readonly eventType:
|
|
4
|
+
readonly eventType: EventType;
|
|
5
5
|
}
|
|
6
6
|
export declare abstract class RallyEvent {
|
|
7
7
|
readonly player: string;
|
|
8
|
-
readonly eventType:
|
|
8
|
+
readonly eventType: EventType;
|
|
9
9
|
protected constructor({ eventType, player }: RallyEventOpts);
|
|
10
10
|
abstract toString(): string;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const performanceStatKeys: readonly ["setting", "serve", "spike", "quick", "power", "awareness", "attack", "backAttack", "reception", "overhand", "bump", "block", "read", "commit", "focus", "defense", "stamina", "
|
|
1
|
+
export declare const performanceStatKeys: readonly ["setting", "serve", "spike", "quick", "power", "awareness", "attack", "backAttack", "reception", "overhand", "bump", "block", "read", "commit", "focus", "defense", "stamina", "reflex"];
|
|
2
2
|
export type PerformanceStatsKey = typeof performanceStatKeys[number];
|
|
3
3
|
export type PerformanceStatsParams = Record<PerformanceStatsKey, number>;
|
|
4
4
|
export interface PerformanceStats extends PerformanceStatsParams {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const performanceStatKeys = ['setting', 'serve', 'spike', 'quick', 'power', 'awareness', 'attack', 'backAttack',
|
|
2
|
-
'reception', 'overhand', 'bump', 'block', 'read', 'commit', 'focus', 'defense', 'stamina', '
|
|
2
|
+
'reception', 'overhand', 'bump', 'block', 'read', 'commit', 'focus', 'defense', 'stamina', 'reflex'];
|
|
3
3
|
export class PerformanceStats {
|
|
4
4
|
constructor(opts) {
|
|
5
5
|
Object.assign(this, opts);
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"commit": 0,
|
|
20
20
|
"focus": 0,
|
|
21
21
|
"defense": 0,
|
|
22
|
-
"
|
|
22
|
+
"reflex": 0
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
{
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"commit": 0,
|
|
43
43
|
"focus": 0,
|
|
44
44
|
"defense": 0,
|
|
45
|
-
"
|
|
45
|
+
"reflex": 0
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"commit": 0,
|
|
66
66
|
"focus": 0,
|
|
67
67
|
"defense": 0,
|
|
68
|
-
"
|
|
68
|
+
"reflex": 0
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"commit": 0,
|
|
89
89
|
"focus": 0,
|
|
90
90
|
"defense": 0,
|
|
91
|
-
"
|
|
91
|
+
"reflex": 0
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
{
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"commit": 0,
|
|
112
112
|
"focus": 0,
|
|
113
113
|
"defense": 0,
|
|
114
|
-
"
|
|
114
|
+
"reflex": 0
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
]
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
{
|
|
19
19
|
"name": "MARKSMAN",
|
|
20
20
|
"modifier": 1.05,
|
|
21
|
-
"chance": 0.
|
|
21
|
+
"chance": 0.5,
|
|
22
22
|
"statThreshold": 75,
|
|
23
23
|
"stat": "ATTACK",
|
|
24
24
|
"weight": 5
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{
|
|
27
27
|
"name": "METEOR_SERVE",
|
|
28
28
|
"modifier": 1.1,
|
|
29
|
-
"chance": 0.
|
|
29
|
+
"chance": 0.5,
|
|
30
30
|
"statThreshold": 75,
|
|
31
31
|
"stat": "SERVE",
|
|
32
32
|
"weight": 10
|
package/package.json
CHANGED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export declare enum EventTypeEnum {
|
|
2
|
-
LIBERO_REPLACEMENT = 0,
|
|
3
|
-
SUBSTITUTION = 1,
|
|
4
|
-
SERVE = 2,
|
|
5
|
-
RECEPTION = 3,
|
|
6
|
-
SET = 4,
|
|
7
|
-
SPIKE = 5,
|
|
8
|
-
BLOCK = 6
|
|
9
|
-
}
|
|
10
|
-
export declare enum BlockFailureEnum {
|
|
11
|
-
NO_FAILURE = 0,
|
|
12
|
-
MISS = 1,
|
|
13
|
-
FAULT = 2,
|
|
14
|
-
OUT_OF_BOUNDS = 3,
|
|
15
|
-
WIPE = 4,
|
|
16
|
-
TOOL = 5
|
|
17
|
-
}
|
|
18
|
-
export declare enum BlockTypeEnum {
|
|
19
|
-
NO_BLOCKER = 0,
|
|
20
|
-
SINGLE = 1,
|
|
21
|
-
DOUBLE = 2,
|
|
22
|
-
TRIPLE = 3
|
|
23
|
-
}
|
|
24
|
-
export declare enum LiberoReplacementTypeEnum {
|
|
25
|
-
LIBERO_IN = 0,
|
|
26
|
-
LIBERO_OUT = 1
|
|
27
|
-
}
|
|
28
|
-
export declare enum ReceptionTypeEnum {
|
|
29
|
-
DIG = 0,
|
|
30
|
-
OVERHAND = 1,
|
|
31
|
-
ONE_HAND = 2,
|
|
32
|
-
OTHER_BODY_PART = 3
|
|
33
|
-
}
|
|
34
|
-
export declare enum ReceptionFailureEnum {
|
|
35
|
-
NO_FAILURE = 0,
|
|
36
|
-
FAULT = 1,
|
|
37
|
-
MISS = 2,
|
|
38
|
-
OUT_OF_BOUNDS = 3,
|
|
39
|
-
BAD_PASS = 4
|
|
40
|
-
}
|
|
41
|
-
export declare enum ServeTypeEnum {
|
|
42
|
-
UNDERHAND = 0,
|
|
43
|
-
OVERHAND_TOPSPIN = 1,
|
|
44
|
-
OVERHAND_FLOAT = 2,
|
|
45
|
-
JUMP_TOPSPIN = 3,
|
|
46
|
-
JUMP_FLOAT = 4
|
|
47
|
-
}
|
|
48
|
-
export declare enum ServeFailureEnum {
|
|
49
|
-
NO_FAILURE = 0,
|
|
50
|
-
FAULT = 1,
|
|
51
|
-
MISS = 2,
|
|
52
|
-
NET = 3,
|
|
53
|
-
OUT_OF_BOUNDS = 4
|
|
54
|
-
}
|
|
55
|
-
export declare enum SetTypeEnum {
|
|
56
|
-
OVERHAND = 0,
|
|
57
|
-
UNDERHAND = 1,
|
|
58
|
-
SPIKE = 2,
|
|
59
|
-
DUMP = 3
|
|
60
|
-
}
|
|
61
|
-
export declare enum SetFailureEnum {
|
|
62
|
-
NO_FAILURE = 0,
|
|
63
|
-
FAULT = 1,
|
|
64
|
-
MISS = 2,
|
|
65
|
-
BAD_PASS = 3,
|
|
66
|
-
OUT_OF_BOUNDS = 4
|
|
67
|
-
}
|
|
68
|
-
export declare enum SpikeTypeEnum {
|
|
69
|
-
CROSS_SHOT = 0,
|
|
70
|
-
LINE_SHOT = 1,
|
|
71
|
-
TOOL_SHOT = 2,
|
|
72
|
-
TIP = 3,
|
|
73
|
-
DOWN_BALL = 4,
|
|
74
|
-
OVERHAND = 5
|
|
75
|
-
}
|
|
76
|
-
export declare enum SpikeFailureEnum {
|
|
77
|
-
NO_FAILURE = 0,
|
|
78
|
-
FAULT = 1,
|
|
79
|
-
MISS = 2,
|
|
80
|
-
OUT_OF_BOUNDS = 3,
|
|
81
|
-
NET = 4
|
|
82
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export declare enum EventTypeEnum {
|
|
2
|
-
LIBERO_REPLACEMENT = 0,
|
|
3
|
-
SUBSTITUTION = 1,
|
|
4
|
-
SERVE = 2,
|
|
5
|
-
RECEPTION = 3,
|
|
6
|
-
SET = 4,
|
|
7
|
-
SPIKE = 5,
|
|
8
|
-
BLOCK = 6
|
|
9
|
-
}
|
|
10
|
-
export declare enum BlockFailureEnum {
|
|
11
|
-
NO_FAILURE = 0,
|
|
12
|
-
MISS = 1,
|
|
13
|
-
FAULT = 2,
|
|
14
|
-
OUT_OF_BOUNDS = 3,
|
|
15
|
-
WIPE = 4,
|
|
16
|
-
TOOL = 5
|
|
17
|
-
}
|
|
18
|
-
export declare enum BlockTypeEnum {
|
|
19
|
-
NO_BLOCKER = 0,
|
|
20
|
-
SINGLE = 1,
|
|
21
|
-
DOUBLE = 2,
|
|
22
|
-
TRIPLE = 3
|
|
23
|
-
}
|
|
24
|
-
export declare enum LiberoReplacementTypeEnum {
|
|
25
|
-
LIBERO_IN = 0,
|
|
26
|
-
LIBERO_OUT = 1
|
|
27
|
-
}
|
|
28
|
-
export declare enum ReceptionTypeEnum {
|
|
29
|
-
DIG = 0,
|
|
30
|
-
OVERHAND = 1,
|
|
31
|
-
ONE_HAND = 2,
|
|
32
|
-
OTHER_BODY_PART = 3
|
|
33
|
-
}
|
|
34
|
-
export declare enum ReceptionFailureEnum {
|
|
35
|
-
NO_FAILURE = 0,
|
|
36
|
-
FAULT = 1,
|
|
37
|
-
MISS = 2,
|
|
38
|
-
OUT_OF_BOUNDS = 3,
|
|
39
|
-
BAD_PASS = 4
|
|
40
|
-
}
|
|
41
|
-
export declare enum ServeTypeEnum {
|
|
42
|
-
UNDERHAND = 0,
|
|
43
|
-
OVERHAND_TOPSPIN = 1,
|
|
44
|
-
OVERHAND_FLOAT = 2,
|
|
45
|
-
JUMP_TOPSPIN = 3,
|
|
46
|
-
JUMP_FLOAT = 4
|
|
47
|
-
}
|
|
48
|
-
export declare enum ServeFailureEnum {
|
|
49
|
-
NO_FAILURE = 0,
|
|
50
|
-
FAULT = 1,
|
|
51
|
-
MISS = 2,
|
|
52
|
-
NET = 3,
|
|
53
|
-
OUT_OF_BOUNDS = 4
|
|
54
|
-
}
|
|
55
|
-
export declare enum SetTypeEnum {
|
|
56
|
-
OVERHAND = 0,
|
|
57
|
-
UNDERHAND = 1,
|
|
58
|
-
SPIKE = 2,
|
|
59
|
-
DUMP = 3
|
|
60
|
-
}
|
|
61
|
-
export declare enum SetFailureEnum {
|
|
62
|
-
NO_FAILURE = 0,
|
|
63
|
-
FAULT = 1,
|
|
64
|
-
MISS = 2,
|
|
65
|
-
BAD_PASS = 3,
|
|
66
|
-
OUT_OF_BOUNDS = 4
|
|
67
|
-
}
|
|
68
|
-
export declare enum SpikeTypeEnum {
|
|
69
|
-
CROSS_SHOT = 0,
|
|
70
|
-
LINE_SHOT = 1,
|
|
71
|
-
TOOL_SHOT = 2,
|
|
72
|
-
TIP = 3,
|
|
73
|
-
DOWN_BALL = 4,
|
|
74
|
-
OVERHAND = 5
|
|
75
|
-
}
|
|
76
|
-
export declare enum SpikeFailureEnum {
|
|
77
|
-
NO_FAILURE = 0,
|
|
78
|
-
FAULT = 1,
|
|
79
|
-
MISS = 2,
|
|
80
|
-
OUT_OF_BOUNDS = 3,
|
|
81
|
-
NET = 4
|
|
82
|
-
}
|