@rpg-engine/shared 0.8.90 → 0.8.91
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/README.md +29 -29
- package/dist/constants/date.constants.d.ts +2 -2
- package/dist/constants/date.constants.js +5 -5
- package/dist/constants/npc.constants.d.ts +1 -1
- package/dist/constants/npc.constants.js +4 -4
- package/dist/constants/socket.constants.d.ts +2 -2
- package/dist/constants/socket.constants.js +6 -6
- package/dist/constants/world.constants.d.ts +10 -10
- package/dist/constants/world.constants.js +13 -13
- package/dist/helpers/deviceHelpers.d.ts +2 -2
- package/dist/helpers/deviceHelpers.js +16 -16
- package/dist/helpers/itemSlotHelper.d.ts +7 -7
- package/dist/helpers/itemSlotHelper.js +27 -27
- package/dist/helpers/skillHelpers.d.ts +4 -4
- package/dist/helpers/skillHelpers.js +25 -25
- package/dist/helpers/weightHelper.d.ts +1 -1
- package/dist/helpers/weightHelper.js +14 -14
- package/dist/index.d.ts +57 -57
- package/dist/index.js +73 -73
- package/dist/libs/GridHelper.d.ts +11 -11
- package/dist/libs/GridHelper.js +37 -37
- package/dist/libs/MathHelper.d.ts +16 -16
- package/dist/libs/MathHelper.js +14 -14
- package/dist/libs/SocketHelper.d.ts +2 -2
- package/dist/libs/SocketHelper.js +14 -14
- package/dist/libs/TextHelper.d.ts +7 -7
- package/dist/libs/TextHelper.js +21 -21
- package/dist/libs/TypeHelper.d.ts +3 -3
- package/dist/libs/TypeHelper.js +16 -16
- package/dist/translations/app-rate.lang.json +38 -38
- package/dist/translations/assets.lang.json +82 -82
- package/dist/translations/auth.lang.json +182 -182
- package/dist/translations/email.lang.json +70 -70
- package/dist/translations/error.lang.json +18 -18
- package/dist/translations/form.lang.json +94 -94
- package/dist/translations/global.lang.json +90 -90
- package/dist/translations/logs.lang.json +6 -6
- package/dist/translations/onboarding.lang.d.ts +10 -10
- package/dist/translations/onboarding.lang.js +21 -21
- package/dist/translations/onboarding.lang.json +50 -50
- package/dist/translations/order.lang.json +90 -90
- package/dist/translations/search.lang.json +50 -50
- package/dist/translations/settings.lang.json +14 -14
- package/dist/translations/tabs.lang.json +22 -22
- package/dist/translations/users.lang.json +22 -22
- package/dist/translations/validation.lang.json +86 -86
- package/dist/types/animation.types.d.ts +69 -69
- package/dist/types/animation.types.js +46 -46
- package/dist/types/api.types.d.ts +21 -21
- package/dist/types/api.types.js +20 -20
- package/dist/types/asset.types.d.ts +6 -6
- package/dist/types/asset.types.js +2 -2
- package/dist/types/auth.types.d.ts +7 -7
- package/dist/types/auth.types.js +2 -2
- package/dist/types/battle.types.d.ts +41 -41
- package/dist/types/battle.types.js +18 -18
- package/dist/types/buff.types.d.ts +39 -39
- package/dist/types/buff.types.js +13 -13
- package/dist/types/character.types.d.ts +233 -233
- package/dist/types/character.types.js +65 -65
- package/dist/types/chat.types.d.ts +72 -72
- package/dist/types/chat.types.js +22 -22
- package/dist/types/depot.types.d.ts +18 -18
- package/dist/types/depot.types.js +9 -9
- package/dist/types/device.types.d.ts +24 -24
- package/dist/types/device.types.js +7 -7
- package/dist/types/displayText.types.d.ts +10 -10
- package/dist/types/displayText.types.js +7 -7
- package/dist/types/entity.types.d.ts +30 -30
- package/dist/types/entity.types.js +20 -20
- package/dist/types/env.types.d.ts +5 -5
- package/dist/types/env.types.js +9 -9
- package/dist/types/equipment.types.d.ts +35 -35
- package/dist/types/equipment.types.js +18 -18
- package/dist/types/googleOAuth.types.d.ts +47 -47
- package/dist/types/googleOAuth.types.js +2 -2
- package/dist/types/inventory.types.d.ts +7 -7
- package/dist/types/inventory.types.js +2 -2
- package/dist/types/item.types.d.ts +377 -376
- package/dist/types/item.types.d.ts.map +1 -1
- package/dist/types/item.types.js +154 -154
- package/dist/types/item.types.js.map +1 -1
- package/dist/types/itemContainer.types.d.ts +83 -83
- package/dist/types/itemContainer.types.js +11 -11
- package/dist/types/leaderboard.types.d.ts +32 -32
- package/dist/types/leaderboard.types.js +9 -9
- package/dist/types/macro.types.d.ts +8 -8
- package/dist/types/macro.types.js +12 -12
- package/dist/types/maps.types.d.ts +90 -90
- package/dist/types/maps.types.js +85 -85
- package/dist/types/marketplace.types.d.ts +61 -61
- package/dist/types/marketplace.types.js +15 -15
- package/dist/types/notification.types.d.ts +14 -14
- package/dist/types/notification.types.js +2 -2
- package/dist/types/npc.types.d.ts +165 -165
- package/dist/types/npc.types.js +49 -49
- package/dist/types/pagination.types.d.ts +13 -13
- package/dist/types/pagination.types.js +2 -2
- package/dist/types/party.types.d.ts +83 -83
- package/dist/types/party.types.js +54 -54
- package/dist/types/places.types.d.ts +16 -16
- package/dist/types/places.types.js +9 -9
- package/dist/types/preloadScene.types.d.ts +4 -4
- package/dist/types/preloadScene.types.js +7 -7
- package/dist/types/premiumAccount.types.d.ts +7 -7
- package/dist/types/premiumAccount.types.js +11 -11
- package/dist/types/quest.types.d.ts +74 -74
- package/dist/types/quest.types.js +21 -21
- package/dist/types/raid.types.d.ts +6 -6
- package/dist/types/raid.types.js +2 -2
- package/dist/types/resource.types.d.ts +5 -5
- package/dist/types/resource.types.js +2 -2
- package/dist/types/scene.types.d.ts +8 -8
- package/dist/types/scene.types.js +8 -8
- package/dist/types/shortcut.types.d.ts +11 -11
- package/dist/types/shortcut.types.js +9 -9
- package/dist/types/skills.types.d.ts +144 -144
- package/dist/types/skills.types.js +106 -106
- package/dist/types/socket.types.d.ts +18 -18
- package/dist/types/socket.types.js +8 -8
- package/dist/types/spell.types.d.ts +156 -156
- package/dist/types/spell.types.js +108 -108
- package/dist/types/tiled.types.d.ts +119 -119
- package/dist/types/tiled.types.js +7 -7
- package/dist/types/trade.types.d.ts +65 -65
- package/dist/types/trade.types.js +15 -15
- package/dist/types/translation.types.d.ts +5 -5
- package/dist/types/translation.types.js +8 -8
- package/dist/types/ui.types.d.ts +8 -8
- package/dist/types/ui.types.js +7 -7
- package/dist/types/useWith.types.d.ts +25 -25
- package/dist/types/useWith.types.js +9 -9
- package/dist/types/user.types.d.ts +104 -104
- package/dist/types/user.types.js +38 -38
- package/dist/types/validation.types.d.ts +9 -9
- package/dist/types/validation.types.js +2 -2
- package/dist/types/view.types.d.ts +15 -15
- package/dist/types/view.types.js +7 -7
- package/package.json +43 -43
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
{
|
|
2
|
-
"isNotEmptyMultiple": {
|
|
3
|
-
"eng": "The following fields cannot be empty: {{fields}}.",
|
|
4
|
-
"ptBr": "Os seguintes campos não podem estar vazios: {{field}}."
|
|
5
|
-
},
|
|
6
|
-
"isNotEmpty": {
|
|
7
|
-
"eng": "{{field}} field cannot be empty.",
|
|
8
|
-
"ptBr": "O campo {{field}} não pode estar vazio."
|
|
9
|
-
},
|
|
10
|
-
"isEmpty": {
|
|
11
|
-
"eng": "{{field}} must be empty.",
|
|
12
|
-
"ptBr": "O campo {{field}} deve estar vazio."
|
|
13
|
-
},
|
|
14
|
-
"isString": {
|
|
15
|
-
"eng": "{{field}} field must be a string.",
|
|
16
|
-
"ptBr": "O campo {{field}} deve ser uma string."
|
|
17
|
-
},
|
|
18
|
-
"isType": {
|
|
19
|
-
"eng": "{{field}} field must be of type {{type}}.",
|
|
20
|
-
"ptBr": "O campo {{field}} deve ser do tipo {{type}}."
|
|
21
|
-
},
|
|
22
|
-
"allArrayFields": {
|
|
23
|
-
"eng": "All elements from array {{field}} must be a {{type}}.",
|
|
24
|
-
"ptBr": "Todos os elementos do campo {{field}} devem ser um {{type}}."
|
|
25
|
-
},
|
|
26
|
-
"minLength": {
|
|
27
|
-
"eng": "{{field}} field must have at least $constraint1 characters.",
|
|
28
|
-
"ptBr": "O campo {{field}} deve ter pelo menos $constraint1 caracteres."
|
|
29
|
-
},
|
|
30
|
-
"maxLength": {
|
|
31
|
-
"eng": "{{field}} field must have up to $constraint1 characters.",
|
|
32
|
-
"ptBr": "O campo {{field}} deve ter até $constraint1 caracteres."
|
|
33
|
-
},
|
|
34
|
-
"isPhoneNumber": {
|
|
35
|
-
"eng": "{{field}} field must be a phone number in the following format: {{format}}.",
|
|
36
|
-
"ptBr": "O campo {{field}} deve ser um número de telefone no seguinte formato: {{format}}."
|
|
37
|
-
},
|
|
38
|
-
"isNumber": {
|
|
39
|
-
"eng": "{{field}} field must be a number.",
|
|
40
|
-
"ptBr": "O campo {{field}} deve ser um número."
|
|
41
|
-
},
|
|
42
|
-
"isEmail": {
|
|
43
|
-
"eng": "{{field}} field must be a valid e-mail.",
|
|
44
|
-
"ptBr": "O campo {{field}} deve ser um e-mail válido."
|
|
45
|
-
},
|
|
46
|
-
"alreadyExists": {
|
|
47
|
-
"eng": "{{field}} already exists!",
|
|
48
|
-
"ptBr": "O campo {{field}} já existe!"
|
|
49
|
-
},
|
|
50
|
-
"alreadyExistsFor": {
|
|
51
|
-
"eng": "An entity {{target}} with this {{field}} already exists!",
|
|
52
|
-
"ptBr": "Um(a) {{target}} com o campo {{field}} já existe!"
|
|
53
|
-
},
|
|
54
|
-
"notFound": {
|
|
55
|
-
"eng": "{{field}} not found!",
|
|
56
|
-
"ptBr": "O campo {{field}} não foi encontrado!"
|
|
57
|
-
},
|
|
58
|
-
"creationError": {
|
|
59
|
-
"eng": "Error while trying to create a new {{field}}.",
|
|
60
|
-
"ptBr": "Erro ao tentar inserir dados para o campo {{field}}."
|
|
61
|
-
},
|
|
62
|
-
"isEnum": {
|
|
63
|
-
"eng": "Error: The {{field}} field accepts only one of the following values: {{types}}.",
|
|
64
|
-
"ptBr": "Erro: o campo {{field}} aceita apenas um dos seguintes valores: {{types}}."
|
|
65
|
-
},
|
|
66
|
-
"requiredResourceCreate": {
|
|
67
|
-
"eng": "A valid {{field}} is required for creating this resource.",
|
|
68
|
-
"ptBr": "Um {{field}} válido é necessário para criar este recurso."
|
|
69
|
-
},
|
|
70
|
-
"errorWhileAction": {
|
|
71
|
-
"eng": "Error while trying to {{action}} the field {{field}}.",
|
|
72
|
-
"ptBr": "Erro ao tentar {{action}} o campo {{field}}."
|
|
73
|
-
},
|
|
74
|
-
"successWhileCreation": {
|
|
75
|
-
"eng": "Your {{resource}} was successfully created.",
|
|
76
|
-
"ptBr": "Sucesso ao criar {{resource}}!"
|
|
77
|
-
},
|
|
78
|
-
"successWhileUpdating": {
|
|
79
|
-
"eng": "Your {{resource}} was successfully updated.",
|
|
80
|
-
"ptBr": "Sucesso ao atualizar {{resource}}!"
|
|
81
|
-
},
|
|
82
|
-
"isInvalid": {
|
|
83
|
-
"eng": "The field {{field}} is invalid. Please, try again.",
|
|
84
|
-
"ptBr": "O campo '{{field}}' é inválido. Por favor, tente novamente."
|
|
85
|
-
}
|
|
86
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"isNotEmptyMultiple": {
|
|
3
|
+
"eng": "The following fields cannot be empty: {{fields}}.",
|
|
4
|
+
"ptBr": "Os seguintes campos não podem estar vazios: {{field}}."
|
|
5
|
+
},
|
|
6
|
+
"isNotEmpty": {
|
|
7
|
+
"eng": "{{field}} field cannot be empty.",
|
|
8
|
+
"ptBr": "O campo {{field}} não pode estar vazio."
|
|
9
|
+
},
|
|
10
|
+
"isEmpty": {
|
|
11
|
+
"eng": "{{field}} must be empty.",
|
|
12
|
+
"ptBr": "O campo {{field}} deve estar vazio."
|
|
13
|
+
},
|
|
14
|
+
"isString": {
|
|
15
|
+
"eng": "{{field}} field must be a string.",
|
|
16
|
+
"ptBr": "O campo {{field}} deve ser uma string."
|
|
17
|
+
},
|
|
18
|
+
"isType": {
|
|
19
|
+
"eng": "{{field}} field must be of type {{type}}.",
|
|
20
|
+
"ptBr": "O campo {{field}} deve ser do tipo {{type}}."
|
|
21
|
+
},
|
|
22
|
+
"allArrayFields": {
|
|
23
|
+
"eng": "All elements from array {{field}} must be a {{type}}.",
|
|
24
|
+
"ptBr": "Todos os elementos do campo {{field}} devem ser um {{type}}."
|
|
25
|
+
},
|
|
26
|
+
"minLength": {
|
|
27
|
+
"eng": "{{field}} field must have at least $constraint1 characters.",
|
|
28
|
+
"ptBr": "O campo {{field}} deve ter pelo menos $constraint1 caracteres."
|
|
29
|
+
},
|
|
30
|
+
"maxLength": {
|
|
31
|
+
"eng": "{{field}} field must have up to $constraint1 characters.",
|
|
32
|
+
"ptBr": "O campo {{field}} deve ter até $constraint1 caracteres."
|
|
33
|
+
},
|
|
34
|
+
"isPhoneNumber": {
|
|
35
|
+
"eng": "{{field}} field must be a phone number in the following format: {{format}}.",
|
|
36
|
+
"ptBr": "O campo {{field}} deve ser um número de telefone no seguinte formato: {{format}}."
|
|
37
|
+
},
|
|
38
|
+
"isNumber": {
|
|
39
|
+
"eng": "{{field}} field must be a number.",
|
|
40
|
+
"ptBr": "O campo {{field}} deve ser um número."
|
|
41
|
+
},
|
|
42
|
+
"isEmail": {
|
|
43
|
+
"eng": "{{field}} field must be a valid e-mail.",
|
|
44
|
+
"ptBr": "O campo {{field}} deve ser um e-mail válido."
|
|
45
|
+
},
|
|
46
|
+
"alreadyExists": {
|
|
47
|
+
"eng": "{{field}} already exists!",
|
|
48
|
+
"ptBr": "O campo {{field}} já existe!"
|
|
49
|
+
},
|
|
50
|
+
"alreadyExistsFor": {
|
|
51
|
+
"eng": "An entity {{target}} with this {{field}} already exists!",
|
|
52
|
+
"ptBr": "Um(a) {{target}} com o campo {{field}} já existe!"
|
|
53
|
+
},
|
|
54
|
+
"notFound": {
|
|
55
|
+
"eng": "{{field}} not found!",
|
|
56
|
+
"ptBr": "O campo {{field}} não foi encontrado!"
|
|
57
|
+
},
|
|
58
|
+
"creationError": {
|
|
59
|
+
"eng": "Error while trying to create a new {{field}}.",
|
|
60
|
+
"ptBr": "Erro ao tentar inserir dados para o campo {{field}}."
|
|
61
|
+
},
|
|
62
|
+
"isEnum": {
|
|
63
|
+
"eng": "Error: The {{field}} field accepts only one of the following values: {{types}}.",
|
|
64
|
+
"ptBr": "Erro: o campo {{field}} aceita apenas um dos seguintes valores: {{types}}."
|
|
65
|
+
},
|
|
66
|
+
"requiredResourceCreate": {
|
|
67
|
+
"eng": "A valid {{field}} is required for creating this resource.",
|
|
68
|
+
"ptBr": "Um {{field}} válido é necessário para criar este recurso."
|
|
69
|
+
},
|
|
70
|
+
"errorWhileAction": {
|
|
71
|
+
"eng": "Error while trying to {{action}} the field {{field}}.",
|
|
72
|
+
"ptBr": "Erro ao tentar {{action}} o campo {{field}}."
|
|
73
|
+
},
|
|
74
|
+
"successWhileCreation": {
|
|
75
|
+
"eng": "Your {{resource}} was successfully created.",
|
|
76
|
+
"ptBr": "Sucesso ao criar {{resource}}!"
|
|
77
|
+
},
|
|
78
|
+
"successWhileUpdating": {
|
|
79
|
+
"eng": "Your {{resource}} was successfully updated.",
|
|
80
|
+
"ptBr": "Sucesso ao atualizar {{resource}}!"
|
|
81
|
+
},
|
|
82
|
+
"isInvalid": {
|
|
83
|
+
"eng": "The field {{field}} is invalid. Please, try again.",
|
|
84
|
+
"ptBr": "O campo '{{field}}' é inválido. Por favor, tente novamente."
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
export interface IEntityAnimation {
|
|
2
|
-
movement: IEntityMovementAnimation;
|
|
3
|
-
death: IEntityDeathAnimation;
|
|
4
|
-
}
|
|
5
|
-
export declare type AnimationDirection = "down" | "up" | "left" | "right";
|
|
6
|
-
export interface IEntityDeathAnimation {
|
|
7
|
-
[direction: string]: {
|
|
8
|
-
frames: number[];
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface IEntityMovementAnimation {
|
|
12
|
-
[direction: string]: {
|
|
13
|
-
walking: number[];
|
|
14
|
-
standing: number | number[];
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export interface IAnimationEffect {
|
|
18
|
-
targetId?: string;
|
|
19
|
-
targetX?: number;
|
|
20
|
-
targetY?: number;
|
|
21
|
-
effectKey: string;
|
|
22
|
-
}
|
|
23
|
-
export interface IProjectileAnimationEffect {
|
|
24
|
-
sourceId: string;
|
|
25
|
-
targetId: string;
|
|
26
|
-
projectileEffectKey: string;
|
|
27
|
-
effectKey?: string;
|
|
28
|
-
}
|
|
29
|
-
export declare enum AnimationSocketEvents {
|
|
30
|
-
ShowAnimation = "ShowAnimation",
|
|
31
|
-
ShowProjectileAnimation = "ShowProjectileAnimation"
|
|
32
|
-
}
|
|
33
|
-
export declare enum AnimationEffectKeys {
|
|
34
|
-
LevelUp = "level-up",
|
|
35
|
-
LifeHeal = "life-heal",
|
|
36
|
-
ManaHeal = "mana-heal",
|
|
37
|
-
SkillLevelUp = "new-skill",
|
|
38
|
-
Poison = "poison",
|
|
39
|
-
Burn = "burn",
|
|
40
|
-
Freeze = "freeze",
|
|
41
|
-
Holy = "holy",
|
|
42
|
-
Lifedrain = "lifedrain",
|
|
43
|
-
Rooted = "rooted",
|
|
44
|
-
HitEnergy = "hit-energy",
|
|
45
|
-
MagicShield = "magic-shield",
|
|
46
|
-
PhysicalShield = "physical-shield",
|
|
47
|
-
HasteSpell = "haste",
|
|
48
|
-
Execution = "execution",
|
|
49
|
-
Hit = "hit",
|
|
50
|
-
Miss = "miss",
|
|
51
|
-
HitBlue = "hit-blue",
|
|
52
|
-
HitDark = "hit-dark",
|
|
53
|
-
HitFire = "hit-fire",
|
|
54
|
-
HitHeal = "hit-heal",
|
|
55
|
-
HitPoison = "hit-poison",
|
|
56
|
-
HitCorruption = "hit-corruption",
|
|
57
|
-
Blue = "blue",
|
|
58
|
-
Green = "green",
|
|
59
|
-
Red = "red",
|
|
60
|
-
Energy = "energy",
|
|
61
|
-
Dark = "dark",
|
|
62
|
-
FireBall = "fireball",
|
|
63
|
-
Arrow = "arrow",
|
|
64
|
-
Heal = "heal",
|
|
65
|
-
Corruption = "corruption",
|
|
66
|
-
BlueWings = "blue-wings",
|
|
67
|
-
QuickFire = "quick-fire",
|
|
68
|
-
Shuriken = "shuriken"
|
|
69
|
-
}
|
|
1
|
+
export interface IEntityAnimation {
|
|
2
|
+
movement: IEntityMovementAnimation;
|
|
3
|
+
death: IEntityDeathAnimation;
|
|
4
|
+
}
|
|
5
|
+
export declare type AnimationDirection = "down" | "up" | "left" | "right";
|
|
6
|
+
export interface IEntityDeathAnimation {
|
|
7
|
+
[direction: string]: {
|
|
8
|
+
frames: number[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface IEntityMovementAnimation {
|
|
12
|
+
[direction: string]: {
|
|
13
|
+
walking: number[];
|
|
14
|
+
standing: number | number[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface IAnimationEffect {
|
|
18
|
+
targetId?: string;
|
|
19
|
+
targetX?: number;
|
|
20
|
+
targetY?: number;
|
|
21
|
+
effectKey: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IProjectileAnimationEffect {
|
|
24
|
+
sourceId: string;
|
|
25
|
+
targetId: string;
|
|
26
|
+
projectileEffectKey: string;
|
|
27
|
+
effectKey?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare enum AnimationSocketEvents {
|
|
30
|
+
ShowAnimation = "ShowAnimation",
|
|
31
|
+
ShowProjectileAnimation = "ShowProjectileAnimation"
|
|
32
|
+
}
|
|
33
|
+
export declare enum AnimationEffectKeys {
|
|
34
|
+
LevelUp = "level-up",
|
|
35
|
+
LifeHeal = "life-heal",
|
|
36
|
+
ManaHeal = "mana-heal",
|
|
37
|
+
SkillLevelUp = "new-skill",
|
|
38
|
+
Poison = "poison",
|
|
39
|
+
Burn = "burn",
|
|
40
|
+
Freeze = "freeze",
|
|
41
|
+
Holy = "holy",
|
|
42
|
+
Lifedrain = "lifedrain",
|
|
43
|
+
Rooted = "rooted",
|
|
44
|
+
HitEnergy = "hit-energy",
|
|
45
|
+
MagicShield = "magic-shield",
|
|
46
|
+
PhysicalShield = "physical-shield",
|
|
47
|
+
HasteSpell = "haste",
|
|
48
|
+
Execution = "execution",
|
|
49
|
+
Hit = "hit",
|
|
50
|
+
Miss = "miss",
|
|
51
|
+
HitBlue = "hit-blue",
|
|
52
|
+
HitDark = "hit-dark",
|
|
53
|
+
HitFire = "hit-fire",
|
|
54
|
+
HitHeal = "hit-heal",
|
|
55
|
+
HitPoison = "hit-poison",
|
|
56
|
+
HitCorruption = "hit-corruption",
|
|
57
|
+
Blue = "blue",
|
|
58
|
+
Green = "green",
|
|
59
|
+
Red = "red",
|
|
60
|
+
Energy = "energy",
|
|
61
|
+
Dark = "dark",
|
|
62
|
+
FireBall = "fireball",
|
|
63
|
+
Arrow = "arrow",
|
|
64
|
+
Heal = "heal",
|
|
65
|
+
Corruption = "corruption",
|
|
66
|
+
BlueWings = "blue-wings",
|
|
67
|
+
QuickFire = "quick-fire",
|
|
68
|
+
Shuriken = "shuriken"
|
|
69
|
+
}
|
|
70
70
|
//# sourceMappingURL=animation.types.d.ts.map
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnimationEffectKeys = exports.AnimationSocketEvents = void 0;
|
|
4
|
-
var AnimationSocketEvents;
|
|
5
|
-
(function (AnimationSocketEvents) {
|
|
6
|
-
AnimationSocketEvents["ShowAnimation"] = "ShowAnimation";
|
|
7
|
-
AnimationSocketEvents["ShowProjectileAnimation"] = "ShowProjectileAnimation";
|
|
8
|
-
})(AnimationSocketEvents = exports.AnimationSocketEvents || (exports.AnimationSocketEvents = {}));
|
|
9
|
-
var AnimationEffectKeys;
|
|
10
|
-
(function (AnimationEffectKeys) {
|
|
11
|
-
AnimationEffectKeys["LevelUp"] = "level-up";
|
|
12
|
-
AnimationEffectKeys["LifeHeal"] = "life-heal";
|
|
13
|
-
AnimationEffectKeys["ManaHeal"] = "mana-heal";
|
|
14
|
-
AnimationEffectKeys["SkillLevelUp"] = "new-skill";
|
|
15
|
-
AnimationEffectKeys["Poison"] = "poison";
|
|
16
|
-
AnimationEffectKeys["Burn"] = "burn";
|
|
17
|
-
AnimationEffectKeys["Freeze"] = "freeze";
|
|
18
|
-
AnimationEffectKeys["Holy"] = "holy";
|
|
19
|
-
AnimationEffectKeys["Lifedrain"] = "lifedrain";
|
|
20
|
-
AnimationEffectKeys["Rooted"] = "rooted";
|
|
21
|
-
AnimationEffectKeys["HitEnergy"] = "hit-energy";
|
|
22
|
-
AnimationEffectKeys["MagicShield"] = "magic-shield";
|
|
23
|
-
AnimationEffectKeys["PhysicalShield"] = "physical-shield";
|
|
24
|
-
AnimationEffectKeys["HasteSpell"] = "haste";
|
|
25
|
-
AnimationEffectKeys["Execution"] = "execution";
|
|
26
|
-
AnimationEffectKeys["Hit"] = "hit";
|
|
27
|
-
AnimationEffectKeys["Miss"] = "miss";
|
|
28
|
-
AnimationEffectKeys["HitBlue"] = "hit-blue";
|
|
29
|
-
AnimationEffectKeys["HitDark"] = "hit-dark";
|
|
30
|
-
AnimationEffectKeys["HitFire"] = "hit-fire";
|
|
31
|
-
AnimationEffectKeys["HitHeal"] = "hit-heal";
|
|
32
|
-
AnimationEffectKeys["HitPoison"] = "hit-poison";
|
|
33
|
-
AnimationEffectKeys["HitCorruption"] = "hit-corruption";
|
|
34
|
-
AnimationEffectKeys["Blue"] = "blue";
|
|
35
|
-
AnimationEffectKeys["Green"] = "green";
|
|
36
|
-
AnimationEffectKeys["Red"] = "red";
|
|
37
|
-
AnimationEffectKeys["Energy"] = "energy";
|
|
38
|
-
AnimationEffectKeys["Dark"] = "dark";
|
|
39
|
-
AnimationEffectKeys["FireBall"] = "fireball";
|
|
40
|
-
AnimationEffectKeys["Arrow"] = "arrow";
|
|
41
|
-
AnimationEffectKeys["Heal"] = "heal";
|
|
42
|
-
AnimationEffectKeys["Corruption"] = "corruption";
|
|
43
|
-
AnimationEffectKeys["BlueWings"] = "blue-wings";
|
|
44
|
-
AnimationEffectKeys["QuickFire"] = "quick-fire";
|
|
45
|
-
AnimationEffectKeys["Shuriken"] = "shuriken";
|
|
46
|
-
})(AnimationEffectKeys = exports.AnimationEffectKeys || (exports.AnimationEffectKeys = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnimationEffectKeys = exports.AnimationSocketEvents = void 0;
|
|
4
|
+
var AnimationSocketEvents;
|
|
5
|
+
(function (AnimationSocketEvents) {
|
|
6
|
+
AnimationSocketEvents["ShowAnimation"] = "ShowAnimation";
|
|
7
|
+
AnimationSocketEvents["ShowProjectileAnimation"] = "ShowProjectileAnimation";
|
|
8
|
+
})(AnimationSocketEvents = exports.AnimationSocketEvents || (exports.AnimationSocketEvents = {}));
|
|
9
|
+
var AnimationEffectKeys;
|
|
10
|
+
(function (AnimationEffectKeys) {
|
|
11
|
+
AnimationEffectKeys["LevelUp"] = "level-up";
|
|
12
|
+
AnimationEffectKeys["LifeHeal"] = "life-heal";
|
|
13
|
+
AnimationEffectKeys["ManaHeal"] = "mana-heal";
|
|
14
|
+
AnimationEffectKeys["SkillLevelUp"] = "new-skill";
|
|
15
|
+
AnimationEffectKeys["Poison"] = "poison";
|
|
16
|
+
AnimationEffectKeys["Burn"] = "burn";
|
|
17
|
+
AnimationEffectKeys["Freeze"] = "freeze";
|
|
18
|
+
AnimationEffectKeys["Holy"] = "holy";
|
|
19
|
+
AnimationEffectKeys["Lifedrain"] = "lifedrain";
|
|
20
|
+
AnimationEffectKeys["Rooted"] = "rooted";
|
|
21
|
+
AnimationEffectKeys["HitEnergy"] = "hit-energy";
|
|
22
|
+
AnimationEffectKeys["MagicShield"] = "magic-shield";
|
|
23
|
+
AnimationEffectKeys["PhysicalShield"] = "physical-shield";
|
|
24
|
+
AnimationEffectKeys["HasteSpell"] = "haste";
|
|
25
|
+
AnimationEffectKeys["Execution"] = "execution";
|
|
26
|
+
AnimationEffectKeys["Hit"] = "hit";
|
|
27
|
+
AnimationEffectKeys["Miss"] = "miss";
|
|
28
|
+
AnimationEffectKeys["HitBlue"] = "hit-blue";
|
|
29
|
+
AnimationEffectKeys["HitDark"] = "hit-dark";
|
|
30
|
+
AnimationEffectKeys["HitFire"] = "hit-fire";
|
|
31
|
+
AnimationEffectKeys["HitHeal"] = "hit-heal";
|
|
32
|
+
AnimationEffectKeys["HitPoison"] = "hit-poison";
|
|
33
|
+
AnimationEffectKeys["HitCorruption"] = "hit-corruption";
|
|
34
|
+
AnimationEffectKeys["Blue"] = "blue";
|
|
35
|
+
AnimationEffectKeys["Green"] = "green";
|
|
36
|
+
AnimationEffectKeys["Red"] = "red";
|
|
37
|
+
AnimationEffectKeys["Energy"] = "energy";
|
|
38
|
+
AnimationEffectKeys["Dark"] = "dark";
|
|
39
|
+
AnimationEffectKeys["FireBall"] = "fireball";
|
|
40
|
+
AnimationEffectKeys["Arrow"] = "arrow";
|
|
41
|
+
AnimationEffectKeys["Heal"] = "heal";
|
|
42
|
+
AnimationEffectKeys["Corruption"] = "corruption";
|
|
43
|
+
AnimationEffectKeys["BlueWings"] = "blue-wings";
|
|
44
|
+
AnimationEffectKeys["QuickFire"] = "quick-fire";
|
|
45
|
+
AnimationEffectKeys["Shuriken"] = "shuriken";
|
|
46
|
+
})(AnimationEffectKeys = exports.AnimationEffectKeys || (exports.AnimationEffectKeys = {}));
|
|
47
47
|
//# sourceMappingURL=animation.types.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export interface IAPIError {
|
|
2
|
-
statusCode: number;
|
|
3
|
-
message: string[] | string;
|
|
4
|
-
error: string;
|
|
5
|
-
}
|
|
6
|
-
export declare enum HttpStatus {
|
|
7
|
-
OK = 200,
|
|
8
|
-
Created = 201,
|
|
9
|
-
NoContent = 204,
|
|
10
|
-
PermanentRedirect = 301,
|
|
11
|
-
TemporaryRedirect = 302,
|
|
12
|
-
BadRequest = 400,
|
|
13
|
-
Unauthorized = 401,
|
|
14
|
-
Forbidden = 403,
|
|
15
|
-
NotFound = 404,
|
|
16
|
-
MethodNotAllowed = 405,
|
|
17
|
-
Conflict = 409,
|
|
18
|
-
UnprocessableEntity = 422,
|
|
19
|
-
InternalServerError = 500,
|
|
20
|
-
ServiceUnavailable = 503
|
|
21
|
-
}
|
|
1
|
+
export interface IAPIError {
|
|
2
|
+
statusCode: number;
|
|
3
|
+
message: string[] | string;
|
|
4
|
+
error: string;
|
|
5
|
+
}
|
|
6
|
+
export declare enum HttpStatus {
|
|
7
|
+
OK = 200,
|
|
8
|
+
Created = 201,
|
|
9
|
+
NoContent = 204,
|
|
10
|
+
PermanentRedirect = 301,
|
|
11
|
+
TemporaryRedirect = 302,
|
|
12
|
+
BadRequest = 400,
|
|
13
|
+
Unauthorized = 401,
|
|
14
|
+
Forbidden = 403,
|
|
15
|
+
NotFound = 404,
|
|
16
|
+
MethodNotAllowed = 405,
|
|
17
|
+
Conflict = 409,
|
|
18
|
+
UnprocessableEntity = 422,
|
|
19
|
+
InternalServerError = 500,
|
|
20
|
+
ServiceUnavailable = 503
|
|
21
|
+
}
|
|
22
22
|
//# sourceMappingURL=api.types.d.ts.map
|
package/dist/types/api.types.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HttpStatus = void 0;
|
|
4
|
-
var HttpStatus;
|
|
5
|
-
(function (HttpStatus) {
|
|
6
|
-
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
7
|
-
HttpStatus[HttpStatus["Created"] = 201] = "Created";
|
|
8
|
-
HttpStatus[HttpStatus["NoContent"] = 204] = "NoContent";
|
|
9
|
-
HttpStatus[HttpStatus["PermanentRedirect"] = 301] = "PermanentRedirect";
|
|
10
|
-
HttpStatus[HttpStatus["TemporaryRedirect"] = 302] = "TemporaryRedirect";
|
|
11
|
-
HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
|
|
12
|
-
HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
|
|
13
|
-
HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
|
|
14
|
-
HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
|
|
15
|
-
HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
16
|
-
HttpStatus[HttpStatus["Conflict"] = 409] = "Conflict";
|
|
17
|
-
HttpStatus[HttpStatus["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
18
|
-
HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
|
|
19
|
-
HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
20
|
-
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpStatus = void 0;
|
|
4
|
+
var HttpStatus;
|
|
5
|
+
(function (HttpStatus) {
|
|
6
|
+
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
7
|
+
HttpStatus[HttpStatus["Created"] = 201] = "Created";
|
|
8
|
+
HttpStatus[HttpStatus["NoContent"] = 204] = "NoContent";
|
|
9
|
+
HttpStatus[HttpStatus["PermanentRedirect"] = 301] = "PermanentRedirect";
|
|
10
|
+
HttpStatus[HttpStatus["TemporaryRedirect"] = 302] = "TemporaryRedirect";
|
|
11
|
+
HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
|
|
12
|
+
HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
|
|
13
|
+
HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
|
|
14
|
+
HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
|
|
15
|
+
HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
16
|
+
HttpStatus[HttpStatus["Conflict"] = 409] = "Conflict";
|
|
17
|
+
HttpStatus[HttpStatus["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
18
|
+
HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
|
|
19
|
+
HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
20
|
+
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
|
21
21
|
//# sourceMappingURL=api.types.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IEntityMovementAnimation } from "./animation.types";
|
|
2
|
-
export interface IAssetData {
|
|
3
|
-
textureKey: string;
|
|
4
|
-
path: string;
|
|
5
|
-
animations: IEntityMovementAnimation;
|
|
6
|
-
}
|
|
1
|
+
import { IEntityMovementAnimation } from "./animation.types";
|
|
2
|
+
export interface IAssetData {
|
|
3
|
+
textureKey: string;
|
|
4
|
+
path: string;
|
|
5
|
+
animations: IEntityMovementAnimation;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=asset.types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=asset.types.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface IAuthResponse {
|
|
2
|
-
accessToken: string;
|
|
3
|
-
refreshToken: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IAuthRefreshTokenResponse {
|
|
6
|
-
accessToken: string;
|
|
7
|
-
}
|
|
1
|
+
export interface IAuthResponse {
|
|
2
|
+
accessToken: string;
|
|
3
|
+
refreshToken: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IAuthRefreshTokenResponse {
|
|
6
|
+
accessToken: string;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=auth.types.d.ts.map
|
package/dist/types/auth.types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=auth.types.js.map
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { EntityType } from "./entity.types";
|
|
2
|
-
export declare enum BattleSocketEvents {
|
|
3
|
-
InitTargeting = "InitTargeting",
|
|
4
|
-
StopTargeting = "StopTargeting",
|
|
5
|
-
CancelTargeting = "CancelTargeting",
|
|
6
|
-
BattleEvent = "BattleEvent",
|
|
7
|
-
BattleDeath = "BattleDeath",
|
|
8
|
-
RangedAttackFailure = "RangedAttackFailure"
|
|
9
|
-
}
|
|
10
|
-
export declare enum BattleEventType {
|
|
11
|
-
Miss = "Miss",
|
|
12
|
-
Block = "Block",
|
|
13
|
-
Hit = "Hit"
|
|
14
|
-
}
|
|
15
|
-
export interface IBattleEventFromServer {
|
|
16
|
-
attackerId: string;
|
|
17
|
-
attackerType: "Character" | "NPC";
|
|
18
|
-
targetId: string;
|
|
19
|
-
targetType: "Character" | "NPC";
|
|
20
|
-
eventType: BattleEventType;
|
|
21
|
-
totalDamage?: number;
|
|
22
|
-
postDamageTargetHP?: number;
|
|
23
|
-
level?: number;
|
|
24
|
-
skill?: string;
|
|
25
|
-
isCriticalHit?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface IBattleDeath {
|
|
28
|
-
id: string;
|
|
29
|
-
type: "Character" | "NPC";
|
|
30
|
-
}
|
|
31
|
-
export interface IBattleInitTargeting {
|
|
32
|
-
targetId: string;
|
|
33
|
-
type: EntityType;
|
|
34
|
-
}
|
|
35
|
-
export interface IBattleCancelTargeting {
|
|
36
|
-
targetId: string;
|
|
37
|
-
type: EntityType;
|
|
38
|
-
reason?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface IBattleRangedAttackFailed extends IBattleCancelTargeting {
|
|
41
|
-
}
|
|
1
|
+
import { EntityType } from "./entity.types";
|
|
2
|
+
export declare enum BattleSocketEvents {
|
|
3
|
+
InitTargeting = "InitTargeting",
|
|
4
|
+
StopTargeting = "StopTargeting",
|
|
5
|
+
CancelTargeting = "CancelTargeting",
|
|
6
|
+
BattleEvent = "BattleEvent",
|
|
7
|
+
BattleDeath = "BattleDeath",
|
|
8
|
+
RangedAttackFailure = "RangedAttackFailure"
|
|
9
|
+
}
|
|
10
|
+
export declare enum BattleEventType {
|
|
11
|
+
Miss = "Miss",
|
|
12
|
+
Block = "Block",
|
|
13
|
+
Hit = "Hit"
|
|
14
|
+
}
|
|
15
|
+
export interface IBattleEventFromServer {
|
|
16
|
+
attackerId: string;
|
|
17
|
+
attackerType: "Character" | "NPC";
|
|
18
|
+
targetId: string;
|
|
19
|
+
targetType: "Character" | "NPC";
|
|
20
|
+
eventType: BattleEventType;
|
|
21
|
+
totalDamage?: number;
|
|
22
|
+
postDamageTargetHP?: number;
|
|
23
|
+
level?: number;
|
|
24
|
+
skill?: string;
|
|
25
|
+
isCriticalHit?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface IBattleDeath {
|
|
28
|
+
id: string;
|
|
29
|
+
type: "Character" | "NPC";
|
|
30
|
+
}
|
|
31
|
+
export interface IBattleInitTargeting {
|
|
32
|
+
targetId: string;
|
|
33
|
+
type: EntityType;
|
|
34
|
+
}
|
|
35
|
+
export interface IBattleCancelTargeting {
|
|
36
|
+
targetId: string;
|
|
37
|
+
type: EntityType;
|
|
38
|
+
reason?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IBattleRangedAttackFailed extends IBattleCancelTargeting {
|
|
41
|
+
}
|
|
42
42
|
//# sourceMappingURL=battle.types.d.ts.map
|