dragonroll/client/src/services/Game.js
BinarySandia04 d4f1f631cd
Some checks failed
test / run-tests-client (push) Successful in 45s
test / run-tests-backend (push) Failing after 15s
Ok communications work, falta passar alguna forma de comunicar el Api object bé
2024-10-16 11:48:50 +02:00

23 lines
424 B
JavaScript

import { ref } from "vue";
import { GetCampaignModule } from "./Campaign";
import { GetCampaign } from "./Dragonroll";
const inGameRef = ref(false);
let InGameRef = () => inGameRef;
function LaunchGame(){
inGameRef.value = true;
GetCampaignModule().init(GetCampaign());
}
function ExitGame(){
inGameRef.value = false;
GetCampaignModule().exit();
}
export {
LaunchGame,
ExitGame,
InGameRef
};