Files
linux-odyssey/packages/game/src/condition/PwdMatcher.ts
T
2024-03-07 00:50:42 +08:00

11 lines
241 B
TypeScript

import { Command } from '../types.js'
import { Matcher } from './Matcher.js'
export class PwdMatcher implements Matcher {
constructor(private pwd: string) {}
match(command: Command): boolean {
return command.pwd === this.pwd
}
}