11 lines
228 B
TypeScript
11 lines
228 B
TypeScript
|
// SPDX-FileCopyrightText: 2021 Johannes Loher
|
||
|
//
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
export const getGame = (): Game => {
|
||
|
if (!(game instanceof Game)) {
|
||
|
throw new Error('game is not initialized yet.');
|
||
|
}
|
||
|
return game;
|
||
|
};
|