@pma-network/redm-types 0.0.8 → 0.0.11

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/PMAPlayer.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { CommonAbstractPMAPlayer } from "@shared-server/types/CommonAbstractPMAPlayer";
2
- import type { ItemName, OptionalItem } from "./Inventory";
3
1
  export type Source = number;
4
2
  export type PlayerUID = number;
5
3
  export type CallSign = string | undefined;
@@ -7,22 +5,3 @@ export type PlayerJob = {
7
5
  name: string;
8
6
  rank: number;
9
7
  };
10
- export declare abstract class AbstractPMAPlayer extends CommonAbstractPMAPlayer {
11
- abstract get_item(item_name: ItemName): OptionalItem;
12
- /**
13
- * Adds the item with {@param item_name} to the players next free slot
14
- * @throws This will throw an error if {@param item_name} is invalid, or if {@param quantity} is negative
15
- * @returns the {@link InventoryItem} that was created, or undefined if there wasn't a free slot to put the item into.
16
- */
17
- abstract add_item(item_name: ItemName, quantity: number): OptionalItem;
18
- /**
19
- * Removes the item with {@param item_name} from the players inventory
20
- * @throws This will throw an error if there wasn't enough {@param quantity} in the players inventory, you should use use has_enough_of_item to check before calling
21
- */
22
- abstract remove_item(item_name: ItemName, quantity: number): void;
23
- /**
24
- * Checks if the player has enough of {@param item_name}
25
- * @returns `true` if they had enough {@param quantity}, `false` otherwise
26
- */
27
- abstract has_enough_of_item(item_name: ItemName, quantity: number): boolean;
28
- }
package/PMAPlayer.js CHANGED
@@ -1,11 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { CommonAbstractPMAPlayer } from "@shared-server/types/CommonAbstractPMAPlayer";
4
- class AbstractPMAPlayer extends CommonAbstractPMAPlayer {
5
- static {
6
- __name(this, "AbstractPMAPlayer");
7
- }
8
- }
9
- export {
10
- AbstractPMAPlayer
11
- };
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Dillon Skaggs <AvarianKnight>"
6
6
  ],
7
7
  "type": "module",
8
- "version": "0.0.8",
8
+ "version": "0.0.11",
9
9
  "files": [
10
10
  "./**/*.js",
11
11
  "./**/*.d.ts"