2023-05-18 15:57:25 -04:00
import { IBotBase } from "../models/eft/common/tables/IBotBase" ;
import { ILogger } from "../models/spt/utils/ILogger" ;
2023-09-02 22:34:11 -04:00
import { LocalisationService } from "./LocalisationService" ;
2023-05-18 15:57:25 -04:00
/** Cache bots in a dictionary, keyed by the bots name, keying by name isnt idea as its not unique but this is used by the post-raid system which doesnt have any bot ids, only name */
export declare class MatchBotDetailsCacheService {
protected logger : ILogger ;
2023-09-02 22:34:11 -04:00
protected localisationService : LocalisationService ;
2023-05-18 15:57:25 -04:00
protected botDetailsCache : Record < string , IBotBase > ;
2023-09-02 22:34:11 -04:00
constructor ( logger : ILogger , localisationService : LocalisationService ) ;
2023-05-18 15:57:25 -04:00
/ * *
* Store a bot in the cache , keyed by its name
* @param botToCache Bot details to cache
* /
cacheBot ( botToCache : IBotBase ) : void ;
/ * *
* Clean the cache of all bot details
* /
clearCache ( ) : void ;
/ * *
* Find a bot in the cache by its name
* @param botName Name of bot to find
* @returns Bot details
* /
getBotByName ( botName : string ) : IBotBase ;
}