node-ts-screeps-api 0.0.14 → 0.0.15

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 CHANGED
@@ -1,3 +1,9 @@
1
+ 基于node-screeps-api写的typescript版本api。
2
+
3
+ 该库缺很多api,作者随缘维护。
4
+
5
+ 如有需要建议还是使用node-screeps-api,或者是使用screeps-simple-api,这个库也是ts api库,而且比本库api齐全得多。
6
+
1
7
  已知问题:
2
8
 
3
9
  1. 私服不能使用 socket
@@ -1,2 +1,3 @@
1
1
  import { ApiConfig } from "./src/type";
2
- export declare const apiConfig: ApiConfig<"signinByPassword">;
2
+ export declare const localServerApiConfig: ApiConfig<"signinByPassword">;
3
+ export declare const officialServerApiConfig: ApiConfig<"signinByPassword">;
@@ -1,2 +1,3 @@
1
1
  import { ApiConfig } from "./src/type";
2
- export declare const apiConfig: ApiConfig<"signinByPassword">;
2
+ export declare const localServerApiConfig: ApiConfig<"signinByPassword">;
3
+ export declare const officialServerApiConfig: ApiConfig<"signinByPassword">;
package/dist/index.js CHANGED
@@ -3704,6 +3704,12 @@ class RawApi {
3704
3704
  async postSegment(args) {
3705
3705
  return this.req("POST", "/api/user/memory-segment", args);
3706
3706
  }
3707
+ async getMemory(args) {
3708
+ return this.req("GET", "/api/user/memory", args);
3709
+ }
3710
+ async postMemory(args) {
3711
+ return this.req("POST", "/api/user/memory", args);
3712
+ }
3707
3713
  async findUser(username) {
3708
3714
  return this.req("GET", "/api/user/find", { username });
3709
3715
  }