@pma-network/redm-types 0.0.6 → 0.0.8

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,3 +1,4 @@
1
+ import { CommonAbstractPMAPlayer } from "@shared-server/types/CommonAbstractPMAPlayer";
1
2
  import type { ItemName, OptionalItem } from "./Inventory";
2
3
  export type Source = number;
3
4
  export type PlayerUID = number;
@@ -6,14 +7,7 @@ export type PlayerJob = {
6
7
  name: string;
7
8
  rank: number;
8
9
  };
9
- export declare abstract class AbstractPMAPlayer {
10
- abstract get_sex(): number;
11
- abstract get_height(): number;
12
- abstract get_dob(): string;
13
- abstract get_unique_id(): PlayerUID;
14
- abstract get_call_sign(): CallSign;
15
- abstract get_character_name(): string;
16
- abstract get_log_name(): string;
10
+ export declare abstract class AbstractPMAPlayer extends CommonAbstractPMAPlayer {
17
11
  abstract get_item(item_name: ItemName): OptionalItem;
18
12
  /**
19
13
  * Adds the item with {@param item_name} to the players next free slot
@@ -31,22 +25,4 @@ export declare abstract class AbstractPMAPlayer {
31
25
  * @returns `true` if they had enough {@param quantity}, `false` otherwise
32
26
  */
33
27
  abstract has_enough_of_item(item_name: ItemName, quantity: number): boolean;
34
- abstract get_job(): PlayerJob;
35
- /**
36
- * Sets the players job to the specified {@param job_name} and {@param rank}
37
- * @throws This will throw if the players job is invalid
38
- */
39
- abstract set_job(job_name: string, rank: number): void;
40
- abstract get_bank(): number;
41
- /**
42
- * Adds the {@param positive_amount} to the players bank.
43
- * @throws if {@param positive_amount} is negative this will throw an error.
44
- */
45
- abstract add_to_bank(positive_amount: number): void;
46
- /**
47
- * Removes the {@param negative_amount} to the players bank.
48
- * @throws if {@param negative_amount} is positive this will throw an error.
49
- */
50
- abstract remove_from_bank(negative_amount: number): void;
51
- abstract save(): Promise<void>;
52
28
  }
package/PMAPlayer.js CHANGED
@@ -1,6 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- class AbstractPMAPlayer {
3
+ import { CommonAbstractPMAPlayer } from "@shared-server/types/CommonAbstractPMAPlayer";
4
+ class AbstractPMAPlayer extends CommonAbstractPMAPlayer {
4
5
  static {
5
6
  __name(this, "AbstractPMAPlayer");
6
7
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Dillon Skaggs <AvarianKnight>"
6
6
  ],
7
7
  "type": "module",
8
- "version": "0.0.6",
8
+ "version": "0.0.8",
9
9
  "files": [
10
10
  "./**/*.js",
11
11
  "./**/*.d.ts"