@gbraver-burst-network/anonymous-browser-sdk 2.0.0-beta.0 → 2.0.0-beta.2
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/lib/index.d.ts +1 -1
- package/lib/sdk/{battle-sdk.d.ts → anonymous-battle-sdk.d.ts} +2 -2
- package/lib/sdk/guest-anonymous-sdk.d.ts +2 -2
- package/lib/sdk/guest-battle-sdk.d.ts +2 -2
- package/lib/sdk/host-battle-sdk.d.ts +2 -2
- package/lib/sdk/local-webrtc-room.d.ts +3 -3
- package/package.json +6 -6
- /package/lib/sdk/{battle-sdk.js → anonymous-battle-sdk.js} +0 -0
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export { AnonymousBattleSDK } from "./sdk/anonymous-battle-sdk";
|
|
1
2
|
export { AuthTokenManager, createAuthTokenManager, } from "./sdk/auth-token-manager";
|
|
2
|
-
export { BattleSDK } from "./sdk/battle-sdk";
|
|
3
3
|
export { createGuestAnonymousSDK, GuestAnonymousSDK, } from "./sdk/guest-anonymous-sdk";
|
|
4
4
|
export { createHostAnonymousSDK, HostAnonymousSDK, } from "./sdk/host-anonymous-sdk";
|
|
5
5
|
export { LocalWebRTCRoom } from "./sdk/local-webrtc-room";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Command, GameState, Player } from "gbraver-burst-core";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 匿名ユーザー用バトルSDK
|
|
5
5
|
* 本操作はログイン後に実行することを想定している
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface AnonymousBattleSDK {
|
|
8
8
|
/** プレイヤーの情報 */
|
|
9
9
|
player: Player;
|
|
10
10
|
/** 対戦相手の情報 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArmdozerId, PilotId } from "gbraver-burst-core";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import {
|
|
3
|
+
import { AnonymousBattleSDK } from "./anonymous-battle-sdk";
|
|
4
4
|
import { GuestWebRTCConnectionManagerOptions } from "./guest-webrtc-connection-manager";
|
|
5
5
|
/** ゲスト用匿名バックエンドSDK */
|
|
6
6
|
export type GuestAnonymousSDK = {
|
|
@@ -18,7 +18,7 @@ export type GuestAnonymousSDK = {
|
|
|
18
18
|
roomID: string;
|
|
19
19
|
armdozerId: ArmdozerId;
|
|
20
20
|
pilotId: PilotId;
|
|
21
|
-
}) => Promise<
|
|
21
|
+
}) => Promise<AnonymousBattleSDK | null>;
|
|
22
22
|
/**
|
|
23
23
|
* WebSocketのエラーを通知する
|
|
24
24
|
* @returns 通知ストリーム
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Command, GameState, Player } from "gbraver-burst-core";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import {
|
|
3
|
+
import { AnonymousBattleSDK } from "./anonymous-battle-sdk";
|
|
4
4
|
import { GuestWebRTCConnectionManager } from "./guest-webrtc-connection-manager";
|
|
5
5
|
/** ゲスト側バトルSDK */
|
|
6
|
-
export declare class GuestBattleSDK implements
|
|
6
|
+
export declare class GuestBattleSDK implements AnonymousBattleSDK {
|
|
7
7
|
#private;
|
|
8
8
|
/** プレイヤーの情報 */
|
|
9
9
|
player: Player;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ArmdozerId, Command, GameState, PilotId, Player } from "gbraver-burst-core";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import {
|
|
3
|
+
import { AnonymousBattleSDK } from "./anonymous-battle-sdk";
|
|
4
4
|
import { HostWebRTCConnectionManager } from "./host-webrtc-connection-manager";
|
|
5
5
|
/** ホスト側バトルSDK */
|
|
6
|
-
export declare class HostBattleSDK implements
|
|
6
|
+
export declare class HostBattleSDK implements AnonymousBattleSDK {
|
|
7
7
|
#private;
|
|
8
8
|
/** プレイヤーの情報 */
|
|
9
9
|
player: Player;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ArmdozerId, PilotId } from "gbraver-burst-core";
|
|
2
|
-
import {
|
|
2
|
+
import { AnonymousBattleSDK } from "./anonymous-battle-sdk";
|
|
3
3
|
import { FrontendLogManager } from "./frontend-log-manager";
|
|
4
4
|
import { HostWebRTCConnectionManager } from "./host-webrtc-connection-manager";
|
|
5
5
|
import { WebSocketConnectionManager } from "./websocket-connection-manager";
|
|
@@ -11,7 +11,7 @@ export type LocalWebRTCRoom = {
|
|
|
11
11
|
* マッチングするまで待機する
|
|
12
12
|
* @returns マッチングした相手とのバトルSDK
|
|
13
13
|
*/
|
|
14
|
-
waitUntilMatching: () => Promise<
|
|
14
|
+
waitUntilMatching: () => Promise<AnonymousBattleSDK>;
|
|
15
15
|
};
|
|
16
16
|
/** ローカルWebRTCルームの実装 */
|
|
17
17
|
export declare class LocalWebRTCRoomImpl implements LocalWebRTCRoom {
|
|
@@ -40,5 +40,5 @@ export declare class LocalWebRTCRoomImpl implements LocalWebRTCRoom {
|
|
|
40
40
|
* マッチングするまで待機する
|
|
41
41
|
* @returns マッチングしたら発火するPromise
|
|
42
42
|
*/
|
|
43
|
-
waitUntilMatching(): Promise<
|
|
43
|
+
waitUntilMatching(): Promise<AnonymousBattleSDK>;
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gbraver-burst-network/anonymous-browser-sdk",
|
|
3
3
|
"description": "gbraver burst anonymous browser sdk",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.2",
|
|
5
5
|
"author": "Y.Takeuchi",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/kaidouji85/gbraver-burst-network/issues",
|
|
8
8
|
"email": "kaidouji85@gmail.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"nanoid": "^6.0.
|
|
11
|
+
"nanoid": "^6.0.2",
|
|
12
12
|
"rxjs": "^7.8.2"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@eslint/js": "^10.0.1",
|
|
16
|
-
"dependency-cruiser": "^18.
|
|
17
|
-
"eslint": "^10.
|
|
16
|
+
"dependency-cruiser": "^18.5.0",
|
|
17
|
+
"eslint": "^10.12.0",
|
|
18
18
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
19
19
|
"gbraver-burst-core": "^1.45.0",
|
|
20
20
|
"npm-run-all": "^4.1.5",
|
|
21
|
-
"prettier": "^3.9.
|
|
21
|
+
"prettier": "^3.9.9",
|
|
22
22
|
"rimraf": "^6.1.3",
|
|
23
|
-
"typescript-eslint": "^8.
|
|
23
|
+
"typescript-eslint": "^8.71.1",
|
|
24
24
|
"zod": "^4.6.5"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
File without changes
|