From 9912a8d9170037bfb12c914f4580c817e56a5ca6 Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Sat, 2 Sep 2023 10:24:07 +0200 Subject: [PATCH] ClientState: split into files --- src/world/clientState/Floating.ts | 5 +++++ src/world/clientState/Manager.ts | 8 -------- src/world/clientState/TiledMinimized.ts | 5 +++++ 3 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 src/world/clientState/Floating.ts create mode 100644 src/world/clientState/TiledMinimized.ts diff --git a/src/world/clientState/Floating.ts b/src/world/clientState/Floating.ts new file mode 100644 index 0000000..b73a150 --- /dev/null +++ b/src/world/clientState/Floating.ts @@ -0,0 +1,5 @@ +namespace ClientState { + export class Floating implements State { + public destroy(passFocus: boolean) {} + } +} diff --git a/src/world/clientState/Manager.ts b/src/world/clientState/Manager.ts index 9a7a26d..5fcf4fd 100644 --- a/src/world/clientState/Manager.ts +++ b/src/world/clientState/Manager.ts @@ -23,12 +23,4 @@ namespace ClientState { export type State = { destroy(passFocus: boolean): void; }; - - export class TiledMinimized implements State { - public destroy(passFocus: boolean) {} - } - - export class Floating implements State { - public destroy(passFocus: boolean) {} - } } diff --git a/src/world/clientState/TiledMinimized.ts b/src/world/clientState/TiledMinimized.ts new file mode 100644 index 0000000..e5dc1ea --- /dev/null +++ b/src/world/clientState/TiledMinimized.ts @@ -0,0 +1,5 @@ +namespace ClientState { + export class TiledMinimized implements State { + public destroy(passFocus: boolean) {} + } +}