2022-07-30 00:35:54 -04:00
|
|
|
import { ContextVariable } from "./ContextVariable";
|
|
|
|
import { ContextVariableType } from "./ContextVariableType";
|
|
|
|
export declare class ApplicationContext {
|
|
|
|
private variables;
|
|
|
|
private static holderMaxSize;
|
2022-12-25 18:45:37 -05:00
|
|
|
/**
|
|
|
|
* Called like:
|
|
|
|
*
|
|
|
|
* const registerPlayerInfo = this.applicationContext.getLatestValue(ContextVariableType.REGISTER_PLAYER_REQUEST).getValue<IRegisterPlayerRequestData>();
|
|
|
|
*
|
|
|
|
* const matchInfo = this.applicationContext.getLatestValue(ContextVariableType.MATCH_INFO).getValue<IStartOfflineRaidRequestData>();
|
|
|
|
* @param type
|
|
|
|
* @returns
|
|
|
|
*/
|
2022-07-30 00:35:54 -04:00
|
|
|
getLatestValue(type: ContextVariableType): ContextVariable;
|
|
|
|
getValues(type: ContextVariableType): ContextVariable[];
|
|
|
|
addValue(type: ContextVariableType, value: any): void;
|
|
|
|
}
|