@ianlucas/cs2-lib 5.1.0 → 5.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/veto.d.ts CHANGED
@@ -28,6 +28,7 @@ export declare class CS2Veto {
28
28
  private getAvailableMaps;
29
29
  private getMap;
30
30
  private getAvailableMapnames;
31
+ getCurrentAction(): CS2VetoActionValues | undefined;
31
32
  getCurrentTeam(): number;
32
33
  choose(mapname?: string): boolean;
33
34
  random(): boolean;
package/dist/veto.js CHANGED
@@ -84,6 +84,9 @@ export class CS2Veto {
84
84
  getAvailableMapnames() {
85
85
  return this.getAvailableMaps().map((map) => map.mapname);
86
86
  }
87
+ getCurrentAction() {
88
+ return this.actions[0];
89
+ }
87
90
  getCurrentTeam() {
88
91
  return (this.toggleTeam ? 1 : 0) + (this.actions.length % 2) * (this.toggleTeam ? -1 : 1);
89
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ianlucas/cs2-lib",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "A TypeScript library for manipulating Counter-Strike 2 data",
5
5
  "license": "MIT",
6
6
  "author": "Ian Lucas",