bloxd.io.d.ts 2.0.1 → 2.2.0
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/api-type-def/clientOption/clientOptions/canChange.d.ts +75 -75
- package/dist/api-type-def/clientOption/clientOptions/crouchingSpeed.d.ts +46 -46
- package/dist/api-type-def/clientOption/clientOptions/index.d.ts +34 -34
- package/dist/api-type-def/clientOption/clientOptions/runningSpeed.d.ts +51 -51
- package/dist/api-type-def/clientOption/clientOptions/speedMultiplier.d.ts +53 -53
- package/dist/api-type-def/clientOption/clientOptions/walkingSpeed.d.ts +51 -51
- package/dist/api-type-def/clientOption/index.d.ts +12 -16
- package/dist/api-type-def/entitySetting/entitySettings/example.d.ts +63 -63
- package/dist/api-type-def/entitySetting/entitySettings/index.d.ts +32 -32
- package/dist/api-type-def/entitySetting/entitySettings/opacity.d.ts +69 -69
- package/dist/api-type-def/entitySetting/entitySettings/overlayColour.d.ts +65 -65
- package/dist/api-type-def/entitySetting/entitySettings/zIndex.d.ts +64 -64
- package/dist/api-type-def/entitySetting/index.d.ts +54 -61
- package/dist/api-type-def/index.d.ts +86 -10
- package/dist/api-type-def/mobSetting/index.d.ts +44 -35
- package/dist/api-type-def/mobSetting/mobSettings/index.d.ts +6 -6
- package/dist/api-type-def/mobSetting/mobSettings/variation.d.ts +118 -118
- package/dist/api-type-def/normal/block/attemptWorldChangeBlock.d.ts +3 -0
- package/dist/api-type-def/normal/block/blockCoordToChunkId.d.ts +3 -0
- package/dist/api-type-def/normal/block/blockIdToBlockName.d.ts +9 -0
- package/dist/api-type-def/normal/block/blockNameToBlockId.d.ts +17 -0
- package/dist/api-type-def/normal/block/chunkIdToBotLeftCoord.d.ts +3 -0
- package/dist/api-type-def/normal/block/getBlock.d.ts +17 -0
- package/dist/api-type-def/normal/block/getBlockId.d.ts +12 -0
- package/dist/api-type-def/normal/block/getBlockSolidity.d.ts +19 -0
- package/dist/api-type-def/normal/block/getChunk.d.ts +15 -0
- package/dist/api-type-def/normal/block/getEmptyChunk.d.ts +12 -0
- package/dist/api-type-def/normal/block/getMetaInfo.d.ts +9 -0
- package/dist/api-type-def/normal/block/index.d.ts +30 -0
- package/dist/api-type-def/normal/block/isBlockInLoadedChunk.d.ts +10 -0
- package/dist/api-type-def/normal/block/setBlock.d.ts +20 -0
- package/dist/api-type-def/normal/block/setBlockRect.d.ts +11 -0
- package/dist/api-type-def/normal/block/setBlockWalls.d.ts +13 -0
- package/dist/api-type-def/normal/entity/getEntityName.d.ts +9 -0
- package/dist/api-type-def/normal/entity/index.d.ts +3 -0
- package/dist/api-type-def/normal/forceRespawn.d.ts +10 -1
- package/dist/api-type-def/normal/getUnitCoordinatesLifeformWithin.d.ts +10 -12
- package/dist/api-type-def/normal/health/applyHealthChange.d.ts +10 -12
- package/dist/api-type-def/normal/health/applyMeleeHit.d.ts +18 -20
- package/dist/api-type-def/normal/health/attemptApplyDamage.d.ts +29 -31
- package/dist/api-type-def/normal/health/getHealth.d.ts +13 -15
- package/dist/api-type-def/normal/health/index.d.ts +9 -8
- package/dist/api-type-def/normal/health/isAlive.d.ts +9 -11
- package/dist/api-type-def/normal/health/killLifeform.d.ts +10 -12
- package/dist/api-type-def/normal/health/setHealth.d.ts +15 -17
- package/dist/api-type-def/normal/index.d.ts +67 -13
- package/dist/api-type-def/normal/item/createItemDrop.d.ts +20 -0
- package/dist/api-type-def/normal/item/deleteItemDrop.d.ts +3 -0
- package/dist/api-type-def/normal/item/index.d.ts +5 -0
- package/dist/api-type-def/normal/item/setCantPickUpItem.d.ts +3 -0
- package/dist/api-type-def/normal/killstreak/clearKillstreak.d.ts +9 -11
- package/dist/api-type-def/normal/killstreak/getCurrentKillstreak.d.ts +9 -11
- package/dist/api-type-def/normal/killstreak/index.d.ts +4 -3
- package/dist/api-type-def/normal/message/broadcastMessage.d.ts +14 -16
- package/dist/api-type-def/normal/message/index.d.ts +23 -4
- package/dist/api-type-def/normal/message/sendFlyingMiddleMessage.d.ts +13 -15
- package/dist/api-type-def/normal/message/sendMessage.d.ts +26 -25
- package/dist/api-type-def/normal/message/sendTopRightHelper.d.ts +31 -0
- package/dist/api-type-def/normal/playParticleEffect.d.ts +11 -0
- package/dist/api-type-def/normal/player/getNumPlayers.d.ts +8 -10
- package/dist/api-type-def/normal/player/getPlayerDbId.d.ts +9 -0
- package/dist/api-type-def/normal/player/getPlayerId.d.ts +9 -0
- package/dist/api-type-def/normal/player/getPlayerIdFromDbId.d.ts +9 -0
- package/dist/api-type-def/normal/player/getPlayerIds.d.ts +8 -10
- package/dist/api-type-def/normal/player/getPlayerPartyWhenJoined.d.ts +10 -12
- package/dist/api-type-def/normal/player/index.d.ts +12 -6
- package/dist/api-type-def/normal/player/isMobile.d.ts +9 -0
- package/dist/api-type-def/normal/player/kickPlayer.d.ts +8 -0
- package/dist/api-type-def/normal/player/playerIsInGame.d.ts +9 -11
- package/dist/api-type-def/normal/player/playerIsLoggedIn.d.ts +7 -9
- package/dist/api-type-def/normal/positions/getPosition.d.ts +9 -11
- package/dist/api-type-def/normal/positions/index.d.ts +7 -3
- package/dist/api-type-def/normal/positions/setPosition.d.ts +23 -22
- package/dist/api-type-def/normal/shields/getShieldAmount.d.ts +11 -13
- package/dist/api-type-def/normal/shields/index.d.ts +4 -4
- package/dist/api-type-def/normal/shields/setShieldAmount.d.ts +10 -12
- package/dist/api-type-def/normal/shops/configureShopCategory.d.ts +10 -12
- package/dist/api-type-def/normal/shops/configureShopCategoryForPlayer.d.ts +11 -0
- package/dist/api-type-def/normal/shops/createShopItem.d.ts +14 -16
- package/dist/api-type-def/normal/shops/createShopItemForPlayer.d.ts +14 -0
- package/dist/api-type-def/normal/shops/deleteShopItem.d.ts +12 -14
- package/dist/api-type-def/normal/shops/index.d.ts +11 -6
- package/dist/api-type-def/normal/shops/resetShopItemForPlayer.d.ts +14 -0
- package/dist/api-type-def/normal/shops/showShopTutorial.d.ts +9 -11
- package/dist/api-type-def/normal/shops/updateShopItem.d.ts +13 -15
- package/dist/api-type-def/normal/shops/updateShopItemForPlayer.d.ts +14 -0
- package/dist/api-type-def/normal/standingOns/getBlockCoordinatesPlayerStandingOn.d.ts +12 -14
- package/dist/api-type-def/normal/standingOns/getBlockTypesPlayerStandingOn.d.ts +10 -12
- package/dist/api-type-def/normal/standingOns/index.d.ts +4 -3
- package/dist/index.d.ts +9 -9
- package/dist/type/ApplyMeleeHitOverrides.d.ts +7 -7
- package/dist/type/ChunkId.d.ts +1 -0
- package/dist/type/Coordinate.d.ts +1 -1
- package/dist/type/Direction.d.ts +1 -1
- package/dist/type/Health.d.ts +1 -1
- package/dist/type/ItemMetaInfo.d.ts +1 -0
- package/dist/type/LifeFormBodyPart.d.ts +1 -1
- package/dist/type/Party.d.ts +5 -5
- package/dist/type/PlayerAttemptDamageOtherPlayerOpts.d.ts +19 -19
- package/dist/type/ShieldAmount.d.ts +1 -1
- package/dist/type/WhoDidDamage.d.ts +5 -5
- package/dist/type/WhoKilled.d.ts +2 -2
- package/dist/type/WorldBlockChangedInfo.d.ts +3 -0
- package/dist/type/block/AllBlockId.d.ts +1 -1
- package/dist/type/block/AllBlockName.d.ts +1 -1
- package/dist/type/block/Block.d.ts +3 -3
- package/dist/type/block/BlockId.d.ts +2 -6
- package/dist/type/block/BlockName.d.ts +2 -6
- package/dist/type/block/index.d.ts +5 -5
- package/dist/type/color/Array255Color.d.ts +8 -8
- package/dist/type/color/Array255ColorWithA.d.ts +10 -10
- package/dist/type/color/StringColor.d.ts +7 -7
- package/dist/type/color/index.d.ts +3 -3
- package/dist/type/dbId/PlayerDbId.d.ts +1 -5
- package/dist/type/dbId/index.d.ts +1 -1
- package/dist/type/id/EntityId.d.ts +2 -6
- package/dist/type/id/Id.d.ts +1 -5
- package/dist/type/id/ItemEntityId.d.ts +2 -0
- package/dist/type/id/LifeFormId.d.ts +3 -3
- package/dist/type/id/MobId.d.ts +2 -6
- package/dist/type/id/PlayerId.d.ts +2 -6
- package/dist/type/id/index.d.ts +6 -5
- package/dist/type/index.d.ts +24 -20
- package/dist/type/item/AllItemId.d.ts +4 -4
- package/dist/type/item/AllItemName.d.ts +1 -1
- package/dist/type/item/Item.d.ts +3 -3
- package/dist/type/item/ItemAttributes.d.ts +5 -0
- package/dist/type/item/ItemId.d.ts +2 -6
- package/dist/type/item/ItemName.d.ts +2 -6
- package/dist/type/item/index.d.ts +6 -5
- package/dist/type/message/CustomTextStyling.d.ts +2 -2
- package/dist/type/message/EntityName.d.ts +8 -8
- package/dist/type/message/StyledIcon.d.ts +10 -10
- package/dist/type/message/StyledText.d.ts +6 -6
- package/dist/type/message/TextStyle.d.ts +8 -8
- package/dist/type/message/TranslatedText.d.ts +5 -5
- package/dist/type/message/index.d.ts +6 -6
- package/dist/type/mob/MobType.d.ts +1 -1
- package/dist/type/mob/index.d.ts +1 -1
- package/dist/type/particle/ParticlePresetOpts.d.ts +20 -20
- package/dist/type/particle/ParticleSystemBlendMode.d.ts +21 -21
- package/dist/type/particle/PresetId.d.ts +1 -1
- package/dist/type/particle/TempParticleSystemOpts.d.ts +31 -31
- package/dist/type/particle/Texture.d.ts +1 -1
- package/dist/type/particle/index.d.ts +5 -5
- package/dist/type/shop/ShopCategoryConfig.d.ts +9 -9
- package/dist/type/shop/ShopCategoryKey.d.ts +1 -1
- package/dist/type/shop/ShopItem.d.ts +25 -25
- package/dist/type/shop/ShopItemBadgeType.d.ts +1 -1
- package/dist/type/shop/ShopItemKey.d.ts +1 -1
- package/dist/type/shop/ShopItemUserInput.d.ts +25 -25
- package/dist/type/shop/index.d.ts +6 -6
- package/dist/type/sound/AllSoundName.d.ts +1 -1
- package/dist/type/sound/SoundName.d.ts +2 -6
- package/dist/type/sound/index.d.ts +2 -2
- package/dist/type/utilType.d.ts +3 -3
- package/package.json +1 -1
- package/readme.md +48 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { ShopItemBadgeType, ShopItemUserInput } from "
|
|
2
|
-
import { CustomTextStyling, StringColor } from "
|
|
3
|
-
export type ShopItem = {
|
|
4
|
-
image: string;
|
|
5
|
-
cost?: number;
|
|
6
|
-
currency?: string;
|
|
7
|
-
amount?: number;
|
|
8
|
-
imageColour?: StringColor;
|
|
9
|
-
canBuy?: boolean;
|
|
10
|
-
isSelected?: boolean;
|
|
11
|
-
buyButtonText?: string | CustomTextStyling;
|
|
12
|
-
customTitle?: string | CustomTextStyling;
|
|
13
|
-
description?: string | CustomTextStyling;
|
|
14
|
-
onBoughtMessage?: string | CustomTextStyling;
|
|
15
|
-
redDot?: boolean;
|
|
16
|
-
forceRemoveRedDot?: boolean;
|
|
17
|
-
badge?: {
|
|
18
|
-
text: string | CustomTextStyling;
|
|
19
|
-
type: ShopItemBadgeType;
|
|
20
|
-
};
|
|
21
|
-
userInput?: ShopItemUserInput;
|
|
22
|
-
sell?: boolean;
|
|
23
|
-
sortPriority?: number;
|
|
24
|
-
hidden?: boolean;
|
|
25
|
-
};
|
|
1
|
+
import { ShopItemBadgeType, ShopItemUserInput } from "../index";
|
|
2
|
+
import { CustomTextStyling, StringColor } from "../index";
|
|
3
|
+
export type ShopItem = {
|
|
4
|
+
image: string;
|
|
5
|
+
cost?: number;
|
|
6
|
+
currency?: string;
|
|
7
|
+
amount?: number;
|
|
8
|
+
imageColour?: StringColor;
|
|
9
|
+
canBuy?: boolean;
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
buyButtonText?: string | CustomTextStyling;
|
|
12
|
+
customTitle?: string | CustomTextStyling;
|
|
13
|
+
description?: string | CustomTextStyling;
|
|
14
|
+
onBoughtMessage?: string | CustomTextStyling;
|
|
15
|
+
redDot?: boolean;
|
|
16
|
+
forceRemoveRedDot?: boolean;
|
|
17
|
+
badge?: {
|
|
18
|
+
text: string | CustomTextStyling;
|
|
19
|
+
type: ShopItemBadgeType;
|
|
20
|
+
};
|
|
21
|
+
userInput?: ShopItemUserInput;
|
|
22
|
+
sell?: boolean;
|
|
23
|
+
sortPriority?: number;
|
|
24
|
+
hidden?: boolean;
|
|
25
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ShopItemBadgeType = "new" | "lucky";
|
|
1
|
+
export type ShopItemBadgeType = "new" | "lucky";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ShopItemKey = string;
|
|
1
|
+
export type ShopItemKey = string;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { PlayerId } from "
|
|
2
|
-
export type ShopItemUserInput = {
|
|
3
|
-
type: "text";
|
|
4
|
-
placeholderText?: string;
|
|
5
|
-
wordCharsOnly?: boolean;
|
|
6
|
-
initialValue?: string;
|
|
7
|
-
} | {
|
|
8
|
-
type: "number";
|
|
9
|
-
placeholderText?: string;
|
|
10
|
-
initialValue?: string;
|
|
11
|
-
} | {
|
|
12
|
-
type: "dropdown";
|
|
13
|
-
dropdownOptions: readonly (string | {
|
|
14
|
-
option: string;
|
|
15
|
-
cost: number;
|
|
16
|
-
})[];
|
|
17
|
-
shouldResetSelectionOnOptionsChange?: boolean;
|
|
18
|
-
initialValue?: string;
|
|
19
|
-
} | {
|
|
20
|
-
type: "player";
|
|
21
|
-
excludedPlayers?: PlayerId[];
|
|
22
|
-
} | {
|
|
23
|
-
type: "color";
|
|
24
|
-
initialValue?: string;
|
|
25
|
-
};
|
|
1
|
+
import { PlayerId } from "../index";
|
|
2
|
+
export type ShopItemUserInput = {
|
|
3
|
+
type: "text";
|
|
4
|
+
placeholderText?: string;
|
|
5
|
+
wordCharsOnly?: boolean;
|
|
6
|
+
initialValue?: string;
|
|
7
|
+
} | {
|
|
8
|
+
type: "number";
|
|
9
|
+
placeholderText?: string;
|
|
10
|
+
initialValue?: string;
|
|
11
|
+
} | {
|
|
12
|
+
type: "dropdown";
|
|
13
|
+
dropdownOptions: readonly (string | {
|
|
14
|
+
option: string;
|
|
15
|
+
cost: number;
|
|
16
|
+
})[];
|
|
17
|
+
shouldResetSelectionOnOptionsChange?: boolean;
|
|
18
|
+
initialValue?: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: "player";
|
|
21
|
+
excludedPlayers?: PlayerId[];
|
|
22
|
+
} | {
|
|
23
|
+
type: "color";
|
|
24
|
+
initialValue?: string;
|
|
25
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./ShopCategoryKey";
|
|
2
|
-
export * from "./ShopItem";
|
|
3
|
-
export * from "./ShopItemKey";
|
|
4
|
-
export * from "./ShopItemUserInput";
|
|
5
|
-
export * from "./ShopItemBadgeType";
|
|
6
|
-
export * from "./ShopCategoryConfig";
|
|
1
|
+
export * from "./ShopCategoryKey";
|
|
2
|
+
export * from "./ShopItem";
|
|
3
|
+
export * from "./ShopItemKey";
|
|
4
|
+
export * from "./ShopItemUserInput";
|
|
5
|
+
export * from "./ShopItemBadgeType";
|
|
6
|
+
export * from "./ShopCategoryConfig";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type AllSoundName = "bow" | "cannonFire1";
|
|
1
|
+
export type AllSoundName = "bow" | "cannonFire1";
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import { AllSoundName } from "./AllSoundName";
|
|
2
|
-
|
|
3
|
-
export type SoundName = AllSoundName & {
|
|
4
|
-
readonly [SoundNameSymbol]: unknown;
|
|
5
|
-
};
|
|
6
|
-
export {};
|
|
1
|
+
import { AllSoundName } from "./AllSoundName";
|
|
2
|
+
export type SoundName = AllSoundName;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./AllSoundName";
|
|
2
|
-
export * from "./SoundName";
|
|
1
|
+
export * from "./AllSoundName";
|
|
2
|
+
export * from "./SoundName";
|
package/dist/type/utilType.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type MargeObject<T> = {
|
|
2
|
-
[K in keyof T]: T[K];
|
|
3
|
-
};
|
|
1
|
+
export type MargeObject<T> = {
|
|
2
|
+
[K in keyof T]: T[K];
|
|
3
|
+
};
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
1
|
this project is not offical bloxd.io repo.
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## how to use
|
|
4
|
+
|
|
5
|
+
Use `npm i bloxd.io.d.ts -D` in terminal(need node.js)
|
|
6
|
+
|
|
7
|
+
and add this option in tsconfig.json
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"compileOptions": {
|
|
12
|
+
"types": ["bloxd.io.d.ts"]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## why use this
|
|
18
|
+
|
|
19
|
+
This package include bloxd.io api docment and d.ts.
|
|
20
|
+
It useful typecheck(as typescript),lint and killing typo(most important).
|
|
21
|
+
|
|
22
|
+
## how to contribute
|
|
23
|
+
|
|
24
|
+
- add more api type in src.
|
|
25
|
+
- add more docment.
|
|
26
|
+
- check code.
|
|
27
|
+
- use this package
|
|
28
|
+
|
|
29
|
+
## repo structure
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
src/
|
|
33
|
+
api-type-def/ # api functions type define
|
|
34
|
+
clientOption/ # clientOption apis define
|
|
35
|
+
clientOptions/ # clientOption function overload define(by clientOption name)
|
|
36
|
+
index.ts # marge clientOptions overload
|
|
37
|
+
|
|
38
|
+
entitySetting/ # entitySetting define
|
|
39
|
+
entitySettings/ # entitySetting function overload(by entitySetting name)
|
|
40
|
+
index.ts # marge entitySetting overload
|
|
41
|
+
mobSetting/ # making now...
|
|
42
|
+
|
|
43
|
+
normal/ # define other apis
|
|
44
|
+
|
|
45
|
+
index.ts # marge api
|
|
46
|
+
type/ # use type define e.g.`PlayerId`
|
|
47
|
+
index.ts # top level file
|
|
48
|
+
|
|
49
|
+
dist/ # d.ts result of tsc.npm package install target
|
|
50
|
+
```
|