0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00
server/project/src/context/ContextVariable.ts

30 lines
585 B
TypeScript
Raw Normal View History

import { ContextVariableType } from "@spt-aki/context/ContextVariableType";
2023-03-03 15:23:46 +00:00
export class ContextVariable
{
private value: any;
private timestamp: Date;
private type: ContextVariableType;
constructor(value: any, type: ContextVariableType)
{
this.value = value;
this.timestamp = new Date();
this.type = type;
}
public getValue<T>(): T
{
return this.value;
}
public getTimestamp(): Date
{
return this.timestamp;
}
public getType(): ContextVariableType
{
return this.type;
}
}