import { ApplicationContext } from "https://deno.land/x/sptaki@1.2.0/context/ApplicationContext.d.ts";
Methods
addValue(type: ContextVariableType, value: any): void
clearValues(type: ContextVariableType): void
Called like:
const registerPlayerInfo = this.applicationContext.getLatestValue(ContextVariableType.REGISTER_PLAYER_REQUEST).getValue<IRegisterPlayerRequestData>();
const activePlayerSessionId = this.applicationContext.getLatestValue(ContextVariableType.SESSION_ID).getValue<string>();
const matchInfo = this.applicationContext.getLatestValue(ContextVariableType.RAID_CONFIGURATION).getValue<IGetRaidConfigurationRequestData>();
getValues(type: ContextVariableType): ContextVariable[]