aboutsummaryrefslogtreecommitdiff
path: root/webAO/viewport/interfaces
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-10-12 18:25:14 +0200
committerstonedDiscord <Tukz@gmx.de>2022-10-12 18:25:14 +0200
commit8a7942c0565298c29edbf0b271d5d7c7f9e56fd8 (patch)
tree67b788f40b7a4713904836de05f0e5876c32bd79 /webAO/viewport/interfaces
parenta83c8962b68f2cc0a0e22d988b8ff030057454e5 (diff)
parent82983e0c38383ec2602b4f41327342d1c8d0a8fd (diff)
Merge branch 'master' into 2fa
Diffstat (limited to 'webAO/viewport/interfaces')
-rw-r--r--webAO/viewport/interfaces/ChatMsg.ts34
-rw-r--r--webAO/viewport/interfaces/Desk.ts4
-rw-r--r--webAO/viewport/interfaces/Position.ts7
-rw-r--r--webAO/viewport/interfaces/Positions.ts5
-rw-r--r--webAO/viewport/interfaces/Testimony.ts3
-rw-r--r--webAO/viewport/interfaces/Viewport.ts43
6 files changed, 96 insertions, 0 deletions
diff --git a/webAO/viewport/interfaces/ChatMsg.ts b/webAO/viewport/interfaces/ChatMsg.ts
new file mode 100644
index 0000000..6b96c6e
--- /dev/null
+++ b/webAO/viewport/interfaces/ChatMsg.ts
@@ -0,0 +1,34 @@
+export interface ChatMsg {
+ content: string;
+ objection: number;
+ sound: string;
+ startpreanim?: boolean;
+ startspeaking?: boolean;
+ side: any;
+ color: number;
+ snddelay: number;
+ preanimdelay?: number;
+ speed: number;
+ blips: string;
+ self_offset?: number[];
+ other_offset?: number[];
+ showname?: string;
+ nameplate?: string;
+ flip?: number;
+ other_flip?: number;
+ effects?: string[];
+ deskmod?: number;
+ preanim?: string;
+ other_name?: string;
+ sprite?: string;
+ name?: string;
+ chatbox?: string;
+ other_emote?: string;
+ parsed?: HTMLSpanElement[];
+ screenshake?: number;
+ flash?: number;
+ type?: number;
+ evidence?: number;
+ looping_sfx?: boolean;
+ noninterrupting_preanim?: number;
+ } \ No newline at end of file
diff --git a/webAO/viewport/interfaces/Desk.ts b/webAO/viewport/interfaces/Desk.ts
new file mode 100644
index 0000000..872426a
--- /dev/null
+++ b/webAO/viewport/interfaces/Desk.ts
@@ -0,0 +1,4 @@
+export interface Desk {
+ ao2?: string;
+ ao1?: string;
+} \ No newline at end of file
diff --git a/webAO/viewport/interfaces/Position.ts b/webAO/viewport/interfaces/Position.ts
new file mode 100644
index 0000000..dea7238
--- /dev/null
+++ b/webAO/viewport/interfaces/Position.ts
@@ -0,0 +1,7 @@
+import { Desk } from './Desk'
+
+export interface Position {
+ bg?: string;
+ desk?: Desk;
+ speedLines: string;
+} \ No newline at end of file
diff --git a/webAO/viewport/interfaces/Positions.ts b/webAO/viewport/interfaces/Positions.ts
new file mode 100644
index 0000000..0644962
--- /dev/null
+++ b/webAO/viewport/interfaces/Positions.ts
@@ -0,0 +1,5 @@
+import { Position } from './Position'
+
+export interface Positions {
+ [key: string]: Position;
+} \ No newline at end of file
diff --git a/webAO/viewport/interfaces/Testimony.ts b/webAO/viewport/interfaces/Testimony.ts
new file mode 100644
index 0000000..61a7491
--- /dev/null
+++ b/webAO/viewport/interfaces/Testimony.ts
@@ -0,0 +1,3 @@
+export interface Testimony {
+ [key: number]: string;
+} \ No newline at end of file
diff --git a/webAO/viewport/interfaces/Viewport.ts b/webAO/viewport/interfaces/Viewport.ts
new file mode 100644
index 0000000..5b428c1
--- /dev/null
+++ b/webAO/viewport/interfaces/Viewport.ts
@@ -0,0 +1,43 @@
+import { ChatMsg } from "./ChatMsg";
+
+export interface Viewport {
+ getTextNow: Function;
+ setTextNow: Function;
+ getChatmsg: Function;
+ setChatmsg: Function;
+ getSfxPlayed: Function;
+ setSfxPlayed: Function;
+ setTickTimer: Function;
+ getTickTimer: Function;
+ getAnimating: Function;
+ setAnimating: Function;
+ getLastEvidence: Function;
+ setLastEvidence: Function;
+ setLastCharacter: Function;
+ getLastCharacter: Function;
+ setShoutTimer: Function;
+ getShoutTimer: Function;
+ setTestimonyTimer: Function;
+ getTestimonyTimer: Function;
+ setTestimonyUpdater: Function;
+ getTestimonyUpdater: Function;
+ getTheme: Function;
+ setTheme: Function;
+ testimonyAudio: HTMLAudioElement;
+ chat_tick: Function;
+ playSFX: Function;
+ set_side: Function;
+ updateTestimony: Function;
+ disposeTestimony: Function;
+ handleTextTick: Function;
+ setSfxAudio: Function;
+ getSfxAudio: Function;
+ getBackgroundFolder: Function;
+ blipChannels: HTMLAudioElement[];
+ music: any;
+ musicVolume: number;
+ setBackgroundName: Function;
+ getBackgroundName: Function;
+ shoutaudio: HTMLAudioElement;
+ updater: any;
+}