att-client
Advanced tools
Comparing version 0.4.10 to 0.4.11
@@ -7,3 +7,3 @@ "use strict"; | ||
name: 'att-client', | ||
version: '0.4.10' | ||
version: '0.4.11' | ||
}; | ||
@@ -10,0 +10,0 @@ const SECOND = 1000; |
import './Logger/index.js'; | ||
export const AGENT = { | ||
name: 'att-client', | ||
version: '0.4.10' | ||
version: '0.4.11' | ||
}; | ||
@@ -6,0 +6,0 @@ const SECOND = 1000; |
@@ -1,1 +0,1 @@ | ||
export type SubscriptionEvent = 'DebugLog' | 'ErrorLog' | 'FatalLog' | 'InfoLog' | 'InventoryChanged' | 'ObjectKilled' | 'PlayerJoined' | 'PlayerKilled' | 'PlayerLeft' | 'PlayerMovedChunk' | 'PlayerStateChanged' | 'PopulationModified' | 'ProfilingData' | 'TraceLog' | 'TradeDeckUsed' | 'TrialFinished' | 'TrialStarted' | 'WarnLog'; | ||
export type SubscriptionEvent = 'DebugLog' | 'ErrorLog' | 'FatalLog' | 'InfoLog' | 'InventoryChanged' | 'ObjectKilled' | 'PlayerJoined' | 'PlayerKilled' | 'PlayerLeft' | 'PlayerMovedChunk' | 'PlayerStateChanged' | 'PopulationModified' | 'ProfilingData' | 'SocialTabletPlayerReported' | 'TraceLog' | 'TradeDeckUsed' | 'TrialFinished' | 'TrialStarted' | 'WarnLog'; |
@@ -128,2 +128,16 @@ import type { CommonMessage } from './CommonMessage.js'; | ||
}; | ||
type SocialTabletPlayerReportedSubscriptionEventMessage = CommonMessage<'Subscription'> & { | ||
eventType: 'SocialTabletPlayerReported'; | ||
data: { | ||
ReportedBy: { | ||
id: number; | ||
username: string; | ||
}; | ||
ReportedPlayer: { | ||
id: number; | ||
username: string; | ||
}; | ||
Reason: string; | ||
}; | ||
}; | ||
type TraceLogSubscriptionEventMessage = CommonMessage<'Subscription'> & { | ||
@@ -160,3 +174,3 @@ eventType: 'TraceLog'; | ||
}; | ||
type SubscriptionEventMessageUnion = DebugLogSubscriptionEventMessage | ErrorLogSubscriptionEventMessage | FatalLogSubscriptionEventMessage | InfoLogSubscriptionEventMessage | InventoryChangedSubscriptionEventMessage | ObjectKilledSubscriptionEventMessage | PlayerJoinedSubscriptionEventMessage | PlayerKilledSubscriptionEventMessage | PlayerLeftSubscriptionEventMessage | PlayerMovedChunkSubscriptionEventMessage | PlayerStateChangedSubscriptionEventMessage | PopulationModifiedSubscriptionEventMessage | ProfilingDataSubscriptionEventMessage | TraceLogSubscriptionEventMessage | TradeDeckUsedSubscriptionEventMessage | TrialFinishedSubscriptionEventMessage | TrialStartedSubscriptionEventMessage | WarnLogSubscriptionEventMessage; | ||
type SubscriptionEventMessageUnion = DebugLogSubscriptionEventMessage | ErrorLogSubscriptionEventMessage | FatalLogSubscriptionEventMessage | InfoLogSubscriptionEventMessage | InventoryChangedSubscriptionEventMessage | ObjectKilledSubscriptionEventMessage | PlayerJoinedSubscriptionEventMessage | PlayerKilledSubscriptionEventMessage | PlayerLeftSubscriptionEventMessage | PlayerMovedChunkSubscriptionEventMessage | PlayerStateChangedSubscriptionEventMessage | PopulationModifiedSubscriptionEventMessage | ProfilingDataSubscriptionEventMessage | TraceLogSubscriptionEventMessage | TradeDeckUsedSubscriptionEventMessage | TrialFinishedSubscriptionEventMessage | TrialStartedSubscriptionEventMessage | SocialTabletPlayerReportedSubscriptionEventMessage | WarnLogSubscriptionEventMessage; | ||
export type SubscriptionEventMessage<T extends SubscriptionEvent> = Extract<SubscriptionEventMessageUnion, { | ||
@@ -163,0 +177,0 @@ eventType: T; |
{ | ||
"name": "att-client", | ||
"version": "0.4.10", | ||
"version": "0.4.11", | ||
"description": "Node bot library for A Township Tale, a VR game by Alta", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/mdingena/att-client#readme", |
@@ -7,3 +7,3 @@ <h1 align="center">ATT Client</h1> | ||
<img alt="typescript version" src="https://img.shields.io/npm/dependency-version/att-client/dev/typescript?style=for-the-badge"> | ||
<img alt="license" src="https://img.shields.io/npm/l/@envato/react-resize-observer-hook?style=for-the-badge" /> | ||
<img alt="license" src="https://img.shields.io/npm/l/att-client?style=for-the-badge" /> | ||
</p> | ||
@@ -10,0 +10,0 @@ |
161730
133
3584