mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Implement rest of the things causing side-effects
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
parent
d42b369f21
commit
00831edd55
@ -4,7 +4,7 @@ import { getInjectable } from "@ogre-tools/injectable";
|
||||
|
||||
const castDieInjectable = getInjectable({
|
||||
id: "cast-die",
|
||||
instantiate: () => () => Promise.resolve(0),
|
||||
instantiate: () => () => Promise.resolve(Math.ceil(Math.random() * 6)),
|
||||
causesSideEffects: true,
|
||||
});
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ import { getInjectable } from "@ogre-tools/injectable";
|
||||
|
||||
const messageToPlayerInjectable = getInjectable({
|
||||
id: "message-to-player",
|
||||
instantiate: () => (message: string) => {},
|
||||
instantiate: () => (message: string) => window.alert(message),
|
||||
causesSideEffects: true,
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user