Skip to content

Commit 7b0c194

Browse files
committed
fix(treasure): keys management
1 parent fc0a882 commit 7b0c194

3 files changed

Lines changed: 287 additions & 176 deletions

File tree

src/interfaces/EntityQuery.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Key } from "../entities/Key";
12
import { Snake } from "../entities/Snake";
23
import { Position } from "../types/Position";
34

@@ -21,6 +22,8 @@ export interface IEntityQuery {
2122
* Checks if a specific position is occupied by certain entity types
2223
*/
2324
isPositionOccupied(position: Position, typesToCheck: string[]): boolean;
25+
26+
getAllKeys(): Key[];
2427
}
2528

2629
/**

0 commit comments

Comments
 (0)