@ianlucas/cs2-lib 1.0.0 → 1.1.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/README.md +4 -4
- package/dist/economy.d.ts +1 -0
- package/dist/items.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# cs2-lib
|
|
2
2
|
|
|
3
|
-
> A TypeScript library for manipulating Counter-Strike
|
|
3
|
+
> A TypeScript library for manipulating Counter-Strike 2 data
|
|
4
4
|
|
|
5
5
|
This library contains items and data from Counter-Strike 2, including utility functions and classes for manipulating them using TypeScript.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npm install @ianlucas/
|
|
10
|
+
npm install @ianlucas/cs2-lib
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
@@ -15,7 +15,7 @@ npm install @ianlucas/cslib
|
|
|
15
15
|
For any module that deals with economy items, you need to setup the available items (`CS_ITEMS` contains all items from the game):
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import { CS_Economy, CS_ITEMS } from "@ianlucas/
|
|
18
|
+
import { CS_Economy, CS_ITEMS } from "@ianlucas/cs2-lib";
|
|
19
19
|
|
|
20
20
|
CS_Economy.use(CS_ITEMS);
|
|
21
21
|
|
package/dist/economy.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface CS_Item {
|
|
|
24
24
|
teams?: CS_Team[];
|
|
25
25
|
tint?: number;
|
|
26
26
|
type: "agent" | "case" | "glove" | "graffiti" | "key" | "melee" | "musickit" | "patch" | "pin" | "sticker" | "tool" | "weapon";
|
|
27
|
+
voprefix?: string;
|
|
27
28
|
wearmax?: number;
|
|
28
29
|
wearmin?: number;
|
|
29
30
|
}
|