diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-09-23 18:07:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-23 18:07:22 +0200 |
| commit | 82983e0c38383ec2602b4f41327342d1c8d0a8fd (patch) | |
| tree | 2c6af046c350e594143ddd5950f1fd373bfe6dda /webAO/viewport/interfaces | |
| parent | a732a654c058842e39917210e47ca7476fa7ef68 (diff) | |
| parent | c3bde03911eb41bb768d1f01c0857d69300e36b8 (diff) | |
Merge pull request #175 from caleb-mabry/more-function-removal-viewport
More function removal from viewport
Diffstat (limited to 'webAO/viewport/interfaces')
| -rw-r--r-- | webAO/viewport/interfaces/ChatMsg.ts | 6 | ||||
| -rw-r--r-- | webAO/viewport/interfaces/Viewport.ts | 35 |
2 files changed, 30 insertions, 11 deletions
diff --git a/webAO/viewport/interfaces/ChatMsg.ts b/webAO/viewport/interfaces/ChatMsg.ts index 293a774..6b96c6e 100644 --- a/webAO/viewport/interfaces/ChatMsg.ts +++ b/webAO/viewport/interfaces/ChatMsg.ts @@ -2,12 +2,12 @@ export interface ChatMsg { content: string; objection: number; sound: string; - startpreanim: boolean; - startspeaking: boolean; + startpreanim?: boolean; + startspeaking?: boolean; side: any; color: number; snddelay: number; - preanimdelay: number; + preanimdelay?: number; speed: number; blips: string; self_offset?: number[]; diff --git a/webAO/viewport/interfaces/Viewport.ts b/webAO/viewport/interfaces/Viewport.ts index 3ffbcc8..5b428c1 100644 --- a/webAO/viewport/interfaces/Viewport.ts +++ b/webAO/viewport/interfaces/Viewport.ts @@ -1,17 +1,35 @@ 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; - changeMusicVolume: Function; - reloadTheme: Function; playSFX: Function; set_side: Function; - initTestimonyUpdater: Function; updateTestimony: Function; disposeTestimony: Function; - handle_ic_speaking: Function; handleTextTick: Function; - theme: string; - chatmsg: ChatMsg; setSfxAudio: Function; getSfxAudio: Function; getBackgroundFolder: Function; @@ -19,6 +37,7 @@ export interface Viewport { music: any; musicVolume: number; setBackgroundName: Function; - lastChar: string; getBackgroundName: Function; -}
\ No newline at end of file + shoutaudio: HTMLAudioElement; + updater: any; +} |
