10 lines
228 B
TypeScript
10 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;
|
|
};
|