2025-01-17 23:37:54 +00:00
|
|
|
import type { Region } from '../Region';
|
|
|
|
|
import type { Bot } from '../../Bot';
|
|
|
|
|
import type { Agent } from '../Agent';
|
|
|
|
|
import type { Circuit } from '../Circuit';
|
2017-12-13 19:55:08 +00:00
|
|
|
|
|
|
|
|
export class CommandsBase
|
|
|
|
|
{
|
|
|
|
|
protected currentRegion: Region;
|
|
|
|
|
protected agent: Agent;
|
|
|
|
|
protected bot: Bot;
|
|
|
|
|
protected circuit: Circuit;
|
|
|
|
|
|
2025-01-17 23:37:54 +00:00
|
|
|
public constructor(region: Region, agent: Agent, bot: Bot)
|
2017-12-13 19:55:08 +00:00
|
|
|
{
|
|
|
|
|
this.currentRegion = region;
|
|
|
|
|
this.agent = agent;
|
|
|
|
|
this.bot = bot;
|
|
|
|
|
this.circuit = this.currentRegion.circuit;
|
|
|
|
|
}
|
2021-09-23 17:14:23 +01:00
|
|
|
|
2025-01-17 23:37:54 +00:00
|
|
|
public shutdown(): void
|
2018-10-09 20:03:28 +01:00
|
|
|
{
|
2025-01-17 23:37:54 +00:00
|
|
|
// optional override
|
2018-10-09 20:03:28 +01:00
|
|
|
}
|
|
|
|
|
}
|