summaryrefslogtreecommitdiff
path: root/src/main/status.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/status.ts')
-rw-r--r--src/main/status.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/status.ts b/src/main/status.ts
index fb99b35..2e59d0f 100644
--- a/src/main/status.ts
+++ b/src/main/status.ts
@@ -7,6 +7,9 @@ type STATUS = {
ActivityIsError:boolean,
playing:boolean,
gameRunning:boolean,
+ gameStatus:{
+ server: string
+ }
}
const status:STATUS = {
@@ -15,6 +18,9 @@ const status:STATUS = {
playing:false, //Is manaplus starting or started
ActivityIsError:false,
gameRunning:false,
+ gameStatus: {
+ server: "Launcher"
+ }
}
export namespace Status {
@@ -50,6 +56,10 @@ export namespace Status {
status.playing=playing;
updateStatus();
}
+ export function setGameStatus(gameStatus:{ server: string }){
+ status.gameStatus=gameStatus;
+ updateStatus();
+ }
export function getStatus():STATUS{
return status;
}