Skip to main content
The Deno 2 Release Candidate is here
Learn more
class ApplicationContext
import { ApplicationContext } from "https://deno.land/x/sptaki@1.2.0/context/mod.ts";

Properties

private
variables

Methods

addValue(type: ContextVariableType, value: any): 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>();

Static Properties

private
holderMaxSize